distof
From AutoCad AutoLISP Functions
Converts a string that represents a real (floating-point) value into a real value
(distof string [mode])
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).
A real number, if successful; otherwise nil.
NoteThe distof function
treats modes 3 and 4 the same. That is, if mode specifies
3 (engineering) or 4 (architectural) units, and string is in
either of these formats, distof returns
the correct real value.