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 }}
.
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
Math templates
Functions
Numeral systems
Functions
Numeral systems
Notation
bigmath
for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas
bra–ket notation
frac
for creating fractions (this template should NOT be used in science or mathematical articles: {{sfrac }}
should be used instead)
intmath
integral symbols
angular brackets
multiline delimiters (2-5 lines inclusive)
math
for inline formulas, to get a better matching font size and vertical alignment than with \textstyle (or the \scriptstyle kludge) PNG-rendered TeX formulas
mathcal
[mathematical] calligraphic font for use in mathematical formulas, as an alternative to \mathcal{...} in LaTeX markup
mvar
a short form to refer to individual italicized maths variables in normal text
arbitrary characters/diacritics set above/below one another
radic
sfrac
for creating fractions (this template MUST be used in science or mathematical articles)
sqrt
tmath
wraps a TeX math expression in <math> tags
val
to report measurement values, uncertainties and units
vec
for various overarrows, underarrows, pointing left, right or both ways