i have this problem in Autlisp
(* 50 50 50 50 50 50 ) = -1554869184
but in Excel : 50^6 = 15625000000
maybe anyone can help me, thaks before
|
i have this problem in Autlisp
(* 50 50 50 50 50 50 ) = -1554869184
but in Excel : 50^6 = 15625000000
maybe anyone can help me, thaks before
Its to do with the data type LISP is using to represent the number - each data type has a maximum and minimum value.
Try changing one of the values to a real (50.0) and check the result.
There are integers limits for AutoCAD. Integer numbers must be between 2147483647 and -2147483648
http://knowledge.autodesk.com/suppor...147483648.html
Not a problem for real numbers though as (* 50.0 50 50 50 50 50 ) returns 1.5625e+010 and (rtos (* 50.0 50 50 50 50 50 ) 2 0) returns "15625000000".