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

$$DECDMS^XLFMTH(): Convert Decimals to Degrees:Minutes:Seconds

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

Description

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

Format

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

Input Parameters

x:

(required) Decimal number to be converted to degree:minutes:seconds.

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 decimal input number to degrees:minutes:seconds.

Example

>S X=$$DECDMS^XLFMTH(30.7)

>W X
30:42:0