Re: [Gambas-user] Issue 165 in gambas: Arithmetic problem with float
Brought to you by:
gambas
From: <ga...@go...> - 2011-12-22 18:10:18
|
Comment #2 on issue 165 by jussi.la...@gmail.com: Arithmetic problem with float http://code.google.com/p/gambas/issues/detail?id=165 Not sure. Dim ff As Float ff = Log2(536870912) Print ff ff = CInt(Log2(536870912)) Print ff Print Log2(536870912) <> CInt(Log2(536870912)) Result: *29* *29* *True* (expected is False!) Again, behaviour tested with C. double a = log2(536870912); printf ("%10.52f \n", a); Jussi |