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

DMSString

DMSString[Theta]
converts an angle Theta given in decimal degrees to a degrees-minutes-seconds string.
DMSString[{Phi, Lambda}]
converts latitude and longitude given in decimal degrees to a DMS latitude-longitude string.
DMSString[{d, m, s}]
converts a DMS list to a DMS string.
  • DMSString[Theta, "NS"] or DMSString[Theta, "EW"] gives a string representation in which the sign of the angle is indicated by one of the cardinal directions N, S, E, or W.
  • DMSString[{Phi, Lambda}] uses N for positive Phi and E for positive Lambda.
  • Angles in radians can be converted to degrees for use in DMSString by dividing by Degree.
Convert an angle given in decimal degrees to a DMS string:
Convert to a DMS string that specifies one of the cardinal directions:
Convert an angle given in decimal degrees to a DMS string:
In[1]:=
Click for copyable input
Out[1]=
 
Convert to a DMS string that specifies one of the cardinal directions:
In[1]:=
Click for copyable input
Out[1]=
New in 7