[Gambas-user] Bug with * operator (I think)
Jussi Lahtinen
jussi.lahtinen at ...626...
Wed Mar 31 21:04:18 CEST 2010
Hi!
I'm using Gambas 3 rev 2822 @ Ubuntu 9.10 64bit.
To IDE console;
?3413156131^2
1.164963477458E+19
Right.
?3413156131*3413156131
-6797109299126662455
Wrong.
Or in code;
dim y as long = 3413156131
Print (y * (1 + y)) / 2
Result;
-3398554647856753152
Wrong.
Also, is there possibility to define integer variable bigger than 64bit?
I need really big numbers...
Jussi
More information about the User
mailing list