Converts a string that represents a real (floating-point) value into a real value
Supported Platforms: Windows and Mac OS
(distof str [mode])
Type: String
A string to be converted. The argument must be a string that distof can parse correctly according to the units specified by mode. It can be in the same form that rtos returns, or in a form that AutoCAD allows for keyboard entry.
Type: Integer
The units in which the string is currently formatted. The mode corresponds to the values allowed for the AutoCAD LUNITS system variable. Specify one of the following numbers for mode:
1 -- Scientific
2 -- Decimal
3 -- Engineering (feet and decimal inches)
4 -- Architectural (feet and fractional inches)
5 -- Fractional
Type: Real
A real number, if successful; otherwise nil.
The distof and rtos functions are complementary. If you pass distof a string created by rtos, distof is guaranteed to return a valid value, and vice versa (assuming the mode values are the same).
None