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 ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user