Convert this absolute angle to a string, relative to angbase.
The angtos function converts the angle in radians to strings. This is similar to the rtos function, but angtos converts angles to strings rather than converting numbers to strings. The optional mode argument (0 through 4) selects the format of the string:
Mode | Description | Example |
---|---|---|
0 | Decimal degrees | 360d |
1 | Deg-min-sec | 47d29'15" |
2 | Grad | 132g |
3 | Radian | 6.28r |
4 | Surveyor's units | N 82d W |
NOTE The optional precision argument allows you to select the number of places after the decimal point. The range is from 0 to 15.
Examples
Code | Returns |
---|---|
(angtos 1.570796) | "90" |
(angtos 1.570796 2 4) | "100.0000g" |
(angtos 0.654932 1 3) | '37d31'29"" |
Tell me about...
(rtos number [mode [precision]])
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |