Template:Deg2DMS
0° 0' 0''
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
Conversions
convert many units (see: list ) cvt many units; abbreviated { convert } convinfobox for use in infoboxes bbl to t barrels of oil to tonnes long ton long hundredweights, quarters and pounds to kilograms; long tons and hundredweights to pounds and metric tonnes miles-chains miles and chains to kilometres linking "chains" rndfrac decimals to fractions
decdeg 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 inflation to calculate inflation of Consumer Price Index-related prices pop density density of a population in an area track gauge railway track gauges
Notation
bigmath for stand-alone formulas, using a bigger font to match \displaystyle PNG-rendered TeX formulas bra–ket notation frac for creating fractions 3 ⁄5 (not for use in science or mathematical articles; instead, use {sfrac }
) intmath integral symbols angular brackets multiline delimiters (2–5 lines inclusive) math for short inline 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 Radic(al)s √2 sfrac for creating fractions 3 / 5 (this template should be used in science or mathematical articles instead of {frac }
) Subscripts and superscripts 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
Boxes Tags
calculation results
calculus
Infobox mathematics function
functions
Category
The article is a derivative under the Creative Commons Attribution-ShareAlike License .
A link to the original article can be found here and attribution parties here
By using this site, you agree to the Terms of Use . Gpedia ® is a registered trademark of the Cyberajah Pty Ltd