Template:HMS2Deg
Revision as of 14:05, 26 April 2016 by imported>Tom.Reding (+parameter "sup" for including the degree symbol "°" at the end, to follow the naming convention of Template:Deg2DMS & Template:Deg2HMS)
0
Description
This template converts an hour angle, given in hours:minutes:seconds format, to decimal degrees.
Usage
{{HMS2Deg|hours|minutes|seconds|p=precision|sup=superscript}}.
Hours is required. Minutes, seconds, parameter p, and parameter sup are all optional and default to 0, 0, 6, and <null>, respectively. To include the degree symbol °, add any text to |sup=.
For example:
{{HMS2Deg|12|29|06.7|p=5|sup=y}} returns 187.27792°.
{{HMS2Deg|12|p=5}} returns 180.
{{HMS2Deg|12}} returns 180.
See also
| The above documentation is transcluded from Template:HMS2Deg/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |