Util.Degrees_DMS() Method

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

Syntax

Util.Degrees_DMS(Degrees, [DegDelim], [MinDelim], [SecDelim], [SecDecimalDigits])

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 "' ")
SecDelim (String) delimiter to follow the seconds portion (default """")
SecDecimalDigits (Integer) number of decimal digits on the seconds portion (default 0)
Return (String) sexagesimal string representation of the angle in degrees, minutes, seconds 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' SS" (there is a space after the degree and minute symbols).