DmsToDeg

DegToDms


The DegToDms function converts a time value, in decimal degrees, to a properly formatted angle string containing degrees, minutes, and seconds.

Syntax

sDms = DegToDms( nDegrees )

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

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

Remarks

This function converts a number to an angle string in DMS format. To do the reverse conversion, use DmsToDeg

Related Topics

DmsToDeg