Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$DMSDEC^XLFMTH(): Convert Degrees:Minutes:Seconds to Decimal

Reference Type: Supported, Category: Math Functions, ICR#: 10105

Description

The $$DMSDEC^XLFMTH extrinsic function converts a number from degrees:minutes:seconds to a decimal.

Format

  $$DMSDEC^XLFMTH(x[,n])

Input Parameters

x:

(required) Degrees:minutes:seconds input number to be converted to decimal.

n:

(optional) The precision for the function. Precision means the detail of the result, in terms of number of digits.

Output

returns:

Returns the converted degrees:minutes:seconds input number to decimal.

Example

>S X=$$DMSDEC^XLFMTH("30:42:0")

>W X
30.7