Re: [Gambas-user] what's wrong with this long integer?

2009-08-02 Thread Stefano Palmeri
Il domenica 2 agosto 2009 01:00:59 Benoît Minisini ha scritto: > > I have a failure with a long integer: > > > > > > DIM IntMyNumber AS Long > > > > IntMyNumber = 90 * 89 * 88 * 87 * 86 * 85 > > PRINT IntMyNumber > > > > returns 1605934816 > > > > > > Ba

Re: [Gambas-user] what's wrong with this long integer?

2009-08-01 Thread Benoît Minisini
> I have a failure with a long integer: > > > DIM IntMyNumber AS Long > > IntMyNumber = 90 * 89 * 88 * 87 * 86 * 85 > PRINT IntMyNumber > > returns 1605934816 > > > Bash returns the correct value: > > echo $[90*89*88*87*86*85] > > 448282533600 (that is l

[Gambas-user] what's wrong with this long integer?

2009-08-01 Thread Stefano Palmeri
I have a failure with a long integer: DIM IntMyNumber AS Long IntMyNumber = 90 * 89 * 88 * 87 * 86 * 85 PRINT IntMyNumber returns 1605934816 Bash returns the correct value: echo $[90*89*88*87*86*85] 448282533600 (that is less than 9.223.372.036.85