This project is closed and read-only.
Actions
Bug #2838
closedRuby 1.8.7 (2009-06-12 patchlevel 174) strange round behaviour
Bug #2838:
Ruby 1.8.7 (2009-06-12 patchlevel 174) strange round behaviour
Description
=begin
?> a = 64.01+128.38+123.96
=> 316.35
?> b = 300+16.35
=> 316.35
?> (a * 10).round
=> 3163
(b * 10).round
=> 3164
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
- Status changed from Open to Rejected
- Priority changed from 7 to 3
=begin
FAQ.
=end
Updated by naruse (Yui NARUSE) over 16 years ago
=begin
Read this:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
=end
Updated by murphy (Kornelius Kalnbach) over 16 years ago
=begin
On 06.03.10 00:23, Yui NARUSE wrote:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
In short: Don't expect exact results when using Floats ;)
=end
Actions