(angtos value [mode [precision]])
The angtos function converts a floating-point value representing an angle to a string based upon the argument mode to specify the target unit system and the argument that specifies the desired precision.
value specfies a floating-point number (in radians) representing an angle.
mode specifies the unit system in which the string is formatted.
The value of mode is interpreted as follows:
| Mode | String Format |
|---|---|
| -1 | The current value of the system variable AUNITS (Angular Units) is used |
| -1 | The current value of the command variable SetAngUnt (Set Angular Units) is used |
| 0 | Degrees |
| 1 | Degrees/minutes/seconds |
| 2 | Grads |
| 3 | Radians |
| 4 | Surveyor's units |
precision specifies the number of decimal places for the resulting string.
Examples
: (angtos 0.5411 0 2)
"31.00"
: (angtos 0.5411 1 2)
"31d"