Description
This template converts a positive decimal degree value to degrees ° minutes ' seconds '' format or to degrees ° minutes m seconds s format (the degree symbol °
is invariant between the two formats).
Usage
{{Deg2DMS|positive decimal degrees |p=precision |sup=ms }}
.
Parameter p is optional and defaults to 3.
Parameter sup is optional and defaults to not-used, <blank>, or <null>, which produces the apostrophe-format for arcminutes and arcseconds , by default (1° 2' 3''). It may be activated by "ms", or any text, to produce the m-s-format for arcminutes and arcseconds (1° 2m 3s ).
For example:
{{Deg2DMS|266.416837|p=4}}
returns 266° 25' 0.6132''.
{{Deg2DMS|266.416837|p=4|sup= }}
returns 266° 25' 0.6132''.
{{Deg2DMS|266.416837|p=4|sup=ms}}
returns 266° 25m 0.6132s .
{{Deg2DMS|266.416837|p=4|sup=no}}
returns 266° 25m 0.6132s .
{{Deg2DMS|266.416837|p=4|sup=10}}
returns 266° 25m 0.6132s .
See also
Math templates
Functions
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
Numeral systems
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
Conversions
[[Template:{{{2}}}|{{{2}}} ]] many units (see: list ) [[Template:{{{2}}}|{{{2}}} ]] many units; abbreviated {{convert }} [[Template:{{{2}}}|{{{2}}} ]] for use in infoboxes [[Template:{{{2}}}|{{{2}}} ]] barrels of oil to tonnes [[Template:{{{2}}}|{{{2}}} ]] long hundredweights, quarters and pounds to kilograms; long tons and hundredweights to pounds and metric tonnes [[Template:{{{2}}}|{{{2}}} ]] miles and chains to kilometres linking "chains" [[Template:{{{2}}}|{{{2}}} ]] decimals to fractions
[[Template:{{{2}}}|{{{2}}} ]] degrees, minutes, and seconds to decimal degrees deg2dms decimal degrees to degrees, minutes, and seconds deg2hms decimal degrees to hour angle (in hours, minutes, and seconds) hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees [[Template:{{{2}}}|{{{2}}} ]] to calculate inflation of Consumer Price Index-related prices [[Template:{{{2}}}|{{{2}}} ]] density of a population in an area [[Template:{{{2}}}|{{{2}}} ]] railway track gauges
Notation
[[Template:{{{2}}}|{{{2}}} ]] for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] bra–ket notation [[Template:{{{2}}}|{{{2}}} ]] for creating fractions 3 ⁄ 5 (not for use in science or mathematical articles; instead, use {{sfrac }}
) [[Template:{{{2}}}|{{{2}}} ]] integral symbols [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] angbr angular brackets [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] multiline delimiters (2–5 lines inclusive) [[Template:{{{2}}}|{{{2}}} ]] for short inline formulas [[Template:{{{2}}}|{{{2}}} ]] [mathematical] calligraphic font for use in mathematical formulas, as an alternative to \mathcal{...} in LaTeX markup
[[Template:{{{2}}}|{{{2}}} ]] a short form to refer to individual italicized maths variables in normal text [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] arbitrary characters/diacritics set above/below one another [[Template:{{{2}}}|{{{2}}} ]] Radicals √2 [[Template:{{{2}}}|{{{2}}} ]] for creating fractions 3 / 5 (this template should be used in science or mathematical articles instead of {{frac }}
) [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] [[Template:{{{2}}}|{{{2}}} ]] Subscripts and superscripts [[Template:{{{2}}}|{{{2}}} ]] wraps a TeX math expression in <math> tags [[Template:{{{2}}}|{{{2}}} ]] to report measurement values, uncertainties and units [[Template:{{{2}}}|{{{2}}} ]] for various overarrows, underarrows, pointing left, right or both ways
Boxes Tags
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]
[[Template:{{{2}}}|{{{2}}} ]]