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 , , , or .
  • DMSString[{ϕ,λ}] uses for positive ϕ and for positive λ.
  • DMSString[θ,n] uses n-digit precision for seconds. DMSString[θ,{"XY",n}] defines both sign representation and precision.
  • Angles in radians can be converted to degrees for use in DMSString by dividing by Degree.
Introduced in 2008
(7.0)
| Updated in 2014
(10.0)