angtof


(angtof  string [ unit ] )

This function converts an angle string to double (in radians); if unit is omitted, the value of AUNITS system variable is used.

Arguments

string  an angle string

unit  the unit of the angle in string
0 degrees
1 degrees, minutes, seconds
2 grad
3 radians
4 surveyor units

Return

the angle as double value, or NIL if the string is not a formatted number

Example

(angtof "1.2")
0.020943951023932
(angtof "1.2" 2)
0.0188495559215388

Remarks

see (angtos) function



©  Bricsys NV. All rights reserved.