Util.Degrees_DM() Method

Converts a value in degrees (may be fractional) to a string sexagesimal format, degrees, minutes

Syntax

Util.Degrees_DM(Degrees, [DegDelim], [MinDelim], [MinDecimalDigits])

The method syntax has these parts:

Part Description
Degrees (Double) angle in degrees 0 to 359.9999999, positive or negative
DegDelim (String) delimiter to follow the degrees portion (default "° ")
MinDelim (String) delimiter to follow the minutes portion (default "' ")
MinDecimalDigits (Integer) number of decimal digits on the minutes portion (default 0)
Return (String) sexagesimal string representation of the angle in degrees, minutes format

Remarks

If you need a leading plus sign, you must prepend it yourself. The delimiters are not restricted to single characters.

The default representation is DD° MM' (there is a space after the degree symbol).