DegToDms FormatAngle

DmsToDeg


The DmsToDms function converts an angle string containing Degrees, minutes, and seconds to a decimal Degree value.

Syntax

nDegrees = DmsToDeg( sDms )

    sDms is a string containing Degrees, minutes, and seconds (e.g., "-25:39:50.4").

    nDegrees is the returned value in decimal degrees (e.g., -25.664).

Remarks

This function converts a string to a decimal number of Degrees. To do the reverse conversion, use DegToDms.

Related Topics

DegToDms, ParseDegrees