Page 1 of 1
Big integers?
Posted: Wed Sep 06, 2006 6:09 am
by HPW
Code: Select all
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?
Posted: Wed Sep 06, 2006 7:56 am
by cormullion
These look correct (although my eyes go funny when I look at them...:-):
Code: Select all
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.
Posted: Wed Sep 06, 2006 9:13 am
by HPW
So it seems to be a Win32 MinGW bug.
;-(
Posted: Wed Sep 06, 2006 11:45 am
by Lutz
Yes, there is definitely a problem with the new 64Bit stuff on Win32 MinGW, I will investigate.
Lutz
Posted: Wed Sep 06, 2006 3:04 pm
by 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