DmsToDeg FormatDmsStr

FormatAngle


The FormatAngle function creates a correctly formatted angle string from degrees, minutes, and seconds components.

Syntax

sDms = FormatAngle( nDeg, nMin, nSec )

    nDeg, nMin, nSec are the components of the angle (e.g., -54, 10, and 21.6).

    sDms is the formatted angle string (e.g., "-54:10:21.6").

Remarks

If the number of degrees is negative, then the returned string contains a negative degrees value.

Related Topics

DegToDms, DmsToDeg, ParseDms, ParseDegrees, FormatDmsStr