ParseDms


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

Syntax

nDegree, nMin, nSec = ParseDms( sDms )

bullet.gif    sDms is an angle string, in decimal Degrees (e.g., "-05:15:36.000").

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

Remarks

If the angle string begins with a negative sign, then the nDegrees component is returned as negative.

Related Topics

DegToDms, DmsToDeg, ParseDegrees


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.