Actions
Bug #4394
closedBug in floating point multiplication
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
Description
I stumbled upon the following odd rounding error in Float multiplication while using irb to calculate the tip for the pizza service ;-):
12.4 * 1.05 yields 13.020000000000001, but should be 13.02
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0