FormatDmsStr ParseDms

ParseDegrees


The ParseDegrees function splits a decimal number of degrees into its components of degrees, minutes, and seconds. To split an angle string in DMS form, use ParseDms

Syntax

nDegrees, nMin, nSec = ParseDegrees( nDegrees )

    nDegrees is a decimal Degree value (e.g., -5.25016667).

    nDegrees, nMin, nSec are the components of the HMS string (e.g., -5, 15, and 36).

Remarks

If the decimal number of degrees is negative, then the nDegrees component is returned as negative.

Related Topics

DegToDms, DmsToDeg, ParseDms, FormatDmsStr