[Gambas-user] Wrong error message

Jussi Lahtinen jussi.lahtinen at ...626...
Tue May 4 21:19:48 CEST 2010


Same result with Gambas 2.20 @ Ubuntu 10.04 64bit.
I haven't recompile after upgrade from Ubuntu 9.10, can this be reason for bug?
I'll try recompile later.

Jussi


2010/5/4 Benoît Minisini <gambas at ...1...>:
>> > I feel something weird in using an integer variable as if it was a
>> > string, and the above snippet does that.
>>
>>  As I said earlier, it is sometimes useful. Datatype is integer because
>>  all other usage of that variable is mundane math.
>>  But of course there are many other ways to do same thing.
>>  Example;
>>  n += i * exp10(i)
>>  Or using temporarily string variable for concatenate and then convert
>> back to integer.
>>  But I'm accustomed to use most simplest expression n &= i.
>>
>>  BTW. 5*exp10(5) gives 500000.000000001 weird?
>
> On my 32 bits Mandriva, I get 500000, both with Gambas 2 and Gambas 3. Could
> other 64 bits users confirm that?
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list