[Gambas-user] Issue 165 in gambas: Arithmetic problem with float

gambas at ...2524... gambas at ...2524...
Fri Dec 30 12:59:00 CET 2011


Updates:
	Status: Fixed

Comment #7 on issue 165 by benoit.m... at ...626...: Arithmetic problem with  
float
http://code.google.com/p/gambas/issues/detail?id=165

In revision #4365:
- I done the float to string conversion a bit differently.
- I correctly detect the glibc mathematical functions.

Consequently:
- 2^23 correctly prints 8388608.
- Log2(x) uses the glibc log2(x) function, not log(x)/log(2). So  
Log2(536870912) returns 29.
- As for Frac(5.025), it can't be exact, as 0.025 has no exact binary  
representation.





More information about the User mailing list