Login | Sign Up

AutoLISP Function Detail
Name: rtos

(rtos num [mode [prec]])

Returns the real or integer number in the value of a string. The string format is based on the mode and precision that is used.

Note: The precision is based off the Lunits system variable unless a value is supplied. The Dimzin system variable controls how trailing and leading zeros are affected.

Mode Meaning
1 Scientific
2 Decimal
3 Engineering
4 Architectural
5 Fractional

(rtos 12.25 2)
(rtos 12 2 2)
(rtos 12.25 5)