newLISP v.8.9.8 on Win32 MinGW.
> (/ 951984987716899 2)
-1551688047
> (setq a 951984987716899)
1191591203
> (setq a 951984987716899.0)
9.519849877e+014
> (int 951984987716899.0)
1191591203
Doc: Integers larger than 9,223,372,036,854,775,807 are truncated to 9,223,372,036,854,775,807. Integers smaller than -9,223,372,036,854,775,808 are truncated to -9,223,372,036,854,775,808.
What do I wrong?
These look correct (although my eyes go funny when I look at them...:-):
newLISP v.8.9.8 on OSX UTF-8, execute 'newlisp -h' for more info.
> (/ 951984987716899 2)
475992493858449
> (setq a 951984987716899)
951984987716899
> (setq a 951984987716899.0)
9.519849877e+14
> (int 951984987716899.0)
951984987716899
>
so there's something odd.
So it seems to be a Win32 MinGW bug.
;-(
Yes, there is definitely a problem with the new 64Bit stuff on Win32 MinGW, I will investigate.
Lutz
Fortunately this was only a display problem with ints on Win32, fixed in development version 8.9.9. See announcement in news section.
Lutz