DMSString

DMSString[]
converts an angle given in decimal degrees to a degrees-minutes-seconds string.

DMSString[{, }]
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.

DetailsDetails

  • DMSString[, "NS"] or DMSString[, "EW"] gives a string representation in which the sign of the angle is indicated by one of the cardinal directions N, , E, or .
  • DMSString[{, }] uses N for positive and E for positive .
  • Angles in radians can be converted to degrees for use in DMSString by dividing by Degree.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »