DMSList[θ]
converts an angle θ given in decimal degrees to a DMS list {degree,minute,second}.
DMSList["dms"]
converts a DMS string to a DMS list {degree,minute,second}.
DMSList["latlon"]
converts a latitude-longitude string to a pair of DMS lists.
DMSList[GeoPosition[…]]
converts GeoPosition data to a pair or array of pairs of DMS lists.
DMSList
DMSList[θ]
converts an angle θ given in decimal degrees to a DMS list {degree,minute,second}.
DMSList["dms"]
converts a DMS string to a DMS list {degree,minute,second}.
DMSList["latlon"]
converts a latitude-longitude string to a pair of DMS lists.
DMSList[GeoPosition[…]]
converts GeoPosition data to a pair or array of pairs of DMS lists.
Details
- DMSList["dms"] supports all common DMS string formats, with delimiters such as °, ', ", and d, m, s.
- DMSList[{d,m,s}] returns a canonicalized degrees-minutes-seconds list with minute and second values between 0 and 60.
- For a positive angle θ, DMSList[θ] returns a list of non-negative numbers. For a negative angle θ, DMSList[θ] returns a list of nonpositive numbers.
- For a negative angle θ, DMSList[θ] is equivalent to -DMSList[-θ].
Examples
open all close allBasic Examples (4)
Convert an angle given in decimal degrees to {degree,minute,second}:
DMSList[20.5]DMSList["40°6'46.728\"W"]This canonicalizes a DMS list:
DMSList[{11, -30, 5.0}]Return the DMS lists of latitude and longitude of a GeoPosition object:
$GeoLocation%//DMSListScope (6)
DMS list form of an angle given in decimal degrees:
DMSList[23.1972]For exact inputs, the result is also a list of exact quantities:
DMSList[231972 / 10000]DMSList[-23.1972]DMS list of an angle given as a DMS string:
DMSList["23d11m49.92s"]The input can be given in multiple forms:
DMSList["23deg11min49.92sec"]DMSList["23° 11' 49.92''"]DMSList["23 arcdegs 11 arcmins 49.92 arcsecs"]In this input, "23o" means 23 degrees and "11 MOA" means 11 minutes of arc:
DMSList["23o 11 MOA 49.92"]Signs in a DMS string can be specified using "North", "West", etc. or abbreviations like "N", "W", etc.:
DMSList["23d11m49.92s West"]DMSList["23d11m49.92s S"]DMSList["23d11m49.92s north"]The sign of the angle can also be explicit in the string, and it applies to all elements:
DMSList["-23d11m49.92s"]DMSList["+23d11m49.92s"]DMSList["-00d11m49.2s"]Canonical DMS list input is returned without change:
DMSList[{23, 11, 49.92}]Degrees and minutes are always returned as exact numbers:
DMSList[{23., 11., 49.92}]Canonicalize to a unique form:
DMSList[{23, 75, 1234.92}]An incomplete specification of a DMS string assumes zeros:
DMSList["23min 5sec"]DMSList["18deg 4sec"]DMSList["1deg 5min"]Return the array of pairs of DMS lists for the locations in a GeoPosition array:
SeedRandom[1234];RandomGeoPosition[5]DMSList[%]Generalizations & Extensions (2)
Act on both angles of a double DMS string:
DMSList["40d7m12s North, 88d14m24s West"]The angles are returned in {lat,lon} form even if provided in reverse order:
DMSList["88d14m24s West, 40d7m12s North"]Specify explicitly the meaning of each angle:
DMSList["latitude 40d7m12s, longitude -88d14m24s"]DMSList["Lon -88d14m24s, Lat 40d7m12s"]Convert a Quantity angle into a DMS list:
DMSList[Quantity[3.342387, "Radians"]]Properties & Relations (8)
For a positive angle θ, DMSList[θ] returns a list of non-negative numbers:
DMSList[51.00964]For a negative angle θ, DMSList[θ] returns a list of non-positive numbers:
DMSList[-51.00964]All numeric angles θ obey the identity DMSList[-θ]-DMSList[θ]:
DMSList[-51.00964] == -DMSList[51.00964]DMSList does not implement 360-degree periodicity:
DMSList[1234.5678]If the input contains an inexact number, the result will be inexact, always in the seconds:
DMSList[{20., 10, 12}]DMSList["20d 10.m 12s"]Only when all numbers are exact will the result be exact:
DMSList[{20, 10, 12}]DMSList["20deg 10min 12sec"]The action of DMSList on a numeric angle can be inverted with FromDMS:
DMSList[23.7284]FromDMS[%]DMSList[(59321/2500)]FromDMS[%]The action of DMSList on a DMS string angle can be inverted with DMSString:
DMSList["23d 43m 42.24s"]DMSString[%]DMSList["23d 43m 42s"]DMSString[%]DMS lists of numeric angles can also be computed with NumberDecompose:
DMSList[23.1972]NumberDecompose[23.1972, {1, 1 / 60, 1 / 3600}]DMSList and NumberDecompose follow the same sign conventions:
DMSList[-23.1972]NumberDecompose[-23.1972, {1, 1 / 60, 1 / 3600}]DMS lists are equivalent to Quantity objects with degree-minute-second mixed units:
dmsUnit = MixedUnit[{"AngularDegrees", "Arcminutes", "Arcseconds"}];UnitConvert[Quantity[23.1972, "AngularDegrees"], dmsUnit]DMSList can extract the DMS list from the Quantity object:
DMSList[%]The list can be used as mixed magnitude for the quantity:
Quantity[MixedMagnitude[%], dmsUnit]Related Guides
Text
Wolfram Research (2008), DMSList, Wolfram Language function, https://reference.wolfram.com/language/ref/DMSList.html (updated 2020).
CMS
Wolfram Language. 2008. "DMSList." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/DMSList.html.
APA
Wolfram Language. (2008). DMSList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DMSList.html
BibTeX
@misc{reference.wolfram_2026_dmslist, author="Wolfram Research", title="{DMSList}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/DMSList.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_dmslist, organization={Wolfram Research}, title={DMSList}, year={2020}, url={https://reference.wolfram.com/language/ref/DMSList.html}, note=[Accessed: 12-June-2026]}