Difference between revisions of "Template:HMS2Deg"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#expr: {{{1|0}}}*15 + {{{2|0}}}/4 + {{{3|0}}}/240 round {{{p|6 | + | {{#expr: {{{1|0}}}*15 + {{{2|0}}}/4 + {{{3|0}}}/240 round {{#if:{{{p|}}}|{{{p|}}}|6}}}}<noinclude> |
Usage: {{tlc|HMS2Deg|hours|minutes|seconds| 5=p=precision}}. | Usage: {{tlc|HMS2Deg|hours|minutes|seconds| 5=p=precision}}. | ||
Line 10: | Line 10: | ||
==See also== | ==See also== | ||
− | [[Template: | + | [[Template:Decdeg]] |
[[Category:Conversion templates|{{PAGENAME}}]] | [[Category:Conversion templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:48, 1 September 2010
0
Usage: {{HMS2Deg|hours|minutes|seconds|p=precision}}
.
This template returns an hour angle, given in hours|minutes|seconds, in decimal degrees.
So {{HMS2Deg|12|29|06.7}}
returns 187.27792.
Only parameter p is optional (defaults to 6).
See also