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 <gam...@users.sourceforge.net>: >> > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user