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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to