This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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["latlong"]
converts from a latitude-longitude string to latitude and longitude in decimal degrees.
  • 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["latlong"] supports latitude-longitude formats, with or without cardinal directions explicitly specified.
  • Results in decimal degrees can be converted to radians by multiplying by Degree.
Convert from a DMS list to an angle in radians:
Convert from a DMS string:
Convert from a DMS string:
Convert from a latitude-longitude specification:
Convert from a DMS list to an angle in radians:
In[1]:=
Click for copyable input
Out[1]=
 
Convert from a DMS string:
In[1]:=
Click for copyable input
Out[1]=
 
Convert from a DMS string:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Convert from a latitude-longitude specification:
In[1]:=
Click for copyable input
Out[1]=
New in 7