angtos


(angtos  ang [ unit [ precision ]] )

This function converts an angle ang (double) into a string; AUNITS and AUPREC settings are used, if unit resp. precision are omitted.

Arguments

ang  the angle to be converted (double, in radians)

unit  the target unit for the result string; if omitted, the value of the AUNITS system variable is used
0 degrees
1 degrees, minutes, seconds
2 grad
3 radians
4 surveyor units

precision  the number of decimal places/digits (integer); if omitted, the value of the AUPREC system variable is used

Return

string, representing the angle value depending on units and precision

Example

(angtos 1.5 0 3)
"85.944"
(angtos 1.5 2 8)
"95.49296586g"

Remarks

see (angtof) function



©  Bricsys NV. All rights reserved.