[Gambas-bugtracker] Bug #1474: multiplication by one hundred gives wrong value
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Dec 7 23:35:23 CET 2018
http://gambaswiki.org/bugtracker/edit?object=BUG.1474&from=L21haW4-
Comment #1 by Benoît MINISINI:
153.48 has no exact binary representation. The most accurate representation used is 153.479999999999989768184605055, which, multiplied by 100, gives you a number lesser than 15348. Hence Floor() (or CInt) returns 15347.
See http://www.binaryconvert.com/convert_double.html to understand.
Benoît MINISINI changed the state of the bug to: Rejected.
More information about the Bugtracker
mailing list