Exchange Forum > AutoLISP and Visual LISP
Strings to Numbers
Page 2 of 2
1 2
Strings to Numbers

#11

Quick Silver
Join Date:
11-01-2007
Yes you could, but you would have to insure that it was loaded first.
Where as "type" and "read" are already loaded.
 
(type (read "3")) = INT
(type (eval (c:cal "3"))) = INT
(type (read "3.5")) = REAL
(type (eval (c:cal "3.5"))) = REAL
Strings to Numbers

#12

Arch_Eric
Join Date:
04-02-2008
Ah. What versions don't have it loaded? I ran the (arx) function and didn't see the geomcal.arx loaded but c:cal works. (I'm running ADT2006)
Page 2 of 2
1 2