Map and Table Calculation

DMS( ) function

Converts decimal degrees to a string with degrees, minutes, seconds.

Syntax

DMS(Value)

Input

Value is a value in degrees
Domain type: any Value domain

Output

DMS returns: a string with degrees, minutes, seconds, as DDD°MM'SS"
Domain: system domain String

Notes:

Tip:

When the definition symbol = is used, a dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.

Usable in

TabCalc, Simple calculators

Examples

Pocket line calculator examples:

? DMS(-7.5050)

returns -7°30'18.000"

TabCalc example:

OutCol = DMS(InCol)

 

InCol

OutCol

25.0000

25°00'00.000"

-25.0000

-25°00'00.000"

45.0000

45°00'00.000"

45.1250

45°07'30.000"

45.2500

45°15'00.000"

45.5000

45°30'00.000"

45.7500

45°45'00.000"

aSee also:

DEGREE LAT
SEC LON