0:0:0
Description
This template converts a decimal degree value, typically right ascension , to hours :minutes :seconds format or to hours h minutes m seconds s format.
Usage
{{Deg2HMS|decimaldegrees |p=precision |sup=superscripts }}
.
Parameter p is optional and defaults to 3.
Parameter sup is optional and defaults to not-used, <blank>, or <null>. It is activated by "yes", or any text.
For example:
{{Deg2HMS|266.416837|p=4}}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup= }}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup=yes}}
returns 17h 45m 40.0409s .
{{Deg2HMS|266.416837|p=4|sup=y}}
returns 17h 45m 40.0409s .
{{Deg2HMS|266.416837|p=4|sup=no}}
returns 17h 45m 40.0409s .
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 (not for use in science or mathematical articles; instead, use {{sfrac }}
)
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 should be used in science or mathematical articles instead of {{frac }}
)
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