Template:Deg2DMS

0° 0' 0''

Template documentation[view] [edit] [history] [purge]

Description

This template converts a positive decimal degree value to degrees° minutesseconds'' format or to degrees° minutesm secondss format (the degree symbol ° is invariant between the two formats).

Usage

{}.

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:
{} returns 266° 25' 0.6132''.
{} returns 266° 25' 0.6132''.

{} returns 266° 25m 0.6132s.
{} returns 266° 25m 0.6132s.
{} returns 266° 25m 0.6132s.

See also