Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:01, 21 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Description == This template converts an hour angle, given in ''hours'':''minutes'':''seconds'' format, to decimal degrees. == Usage == <code><nowiki>{{HMS2Deg|</nowiki>''hours''<nowiki>|</nowiki>''minutes''<nowiki>|</nowiki>''seconds''<nowiki>|p=</nowiki>''precision''<nowiki>|sup=</nowiki>''supe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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