Actions
Backport #1910
closedBigDecimal addition inaccuracy 3.6525+24.35 != 28.25
Status:
Closed
Assignee:
-
Description
=begin
ruby 1.8.7 (2009-06-08 patchlevel 173) [i686-linux]
I tried this sum and got the answer 28.25 instead of 28.0025:
result = BigDecimal.new("3.6525") + BigDecimal.new("24.35")
puts result.to_f
Prints "28.25" instead of "28.0025"
=end
Actions
Like0
Like0Like0