Code: Select all
newLISP v.8.8.0 on Win32 MinGW, execute 'newlisp -h' for more info.
> (setq num 2147483646)
2147483646
> (+ num 5)
-2147483645
> (inc 'num 5)
2147483651
>
Code: Select all
newLISP v.8.8.0 on Win32 MinGW, execute 'newlisp -h' for more info.
> (setq num 2147483646)
2147483646
> (+ num 5)
-2147483645
> (inc 'num 5)
2147483651
>
I notice thatIf num is supplied, inc always returns the result as floating point even for integer input arguments.
Code: Select all
(add num 5)