FromDMS
FromDMS[{d,m,s}]
converts from degrees, minutes, and seconds to decimal degrees.
FromDMS["dms"]
converts from a DMS string to decimal degrees.
FromDMS["latlon"]
converts from a latitude-longitude string to latitude and longitude in decimal degrees.
Details
- FromDMS["dms"] supports all common DMS string formats, with delimiters such as °, ', ", and d, m, s.
- FromDMS["dms"] allows strings containing cardinal directions N, S, E, W. N and E give positive angles; S and W give negative angles.
- FromDMS["latlon"] supports latitude-longitude formats, with or without cardinal directions explicitly specified.
- Results in decimal degrees can be converted to radians by multiplying by Degree.
Examples
open allclose allBasic Examples (4)
Scope (4)
Convert a DMS list into a numeric angle in degrees:
For exact input, the result is also an exact number:
The sign can also be specified using a cardinal direction:
Convert a DMS string into a numeric angle in degrees:
The input can be given in multiple forms:
Signs in a DMS string can also be specified using cardinal directions:
Generalizations & Extensions (4)
Properties & Relations (3)
Text
Wolfram Research (2008), FromDMS, Wolfram Language function, https://reference.wolfram.com/language/ref/FromDMS.html.
CMS
Wolfram Language. 2008. "FromDMS." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FromDMS.html.
APA
Wolfram Language. (2008). FromDMS. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromDMS.html