From: "marcandre (Marc-Andre Lafortune)" Date: 2012-09-15T07:05:30+09:00 Subject: [ruby-core:47536] [ruby-trunk - Bug #7024][Rejected] 90 * 1.1 => 99.00000000000001 Issue #7024 has been updated by marcandre (Marc-Andre Lafortune). Status changed from Open to Rejected This is expected from floating point calculations; you'll get this result in other languages too. Checkout http://0.30000000000000004.com/ ---------------------------------------- Bug #7024: 90 * 1.1 => 99.00000000000001 https://bugs.ruby-lang.org/issues/7024#change-29314 Author: Bahanix (Julien Grillot) Status: Rejected Priority: Normal Assignee: Category: core Target version: 1.9.3 ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] $ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] $ irb 1.9.3p194 :001 > 90*1.1 => 99.00000000000001 1.9.3p194 :002 > 90.0*1.1 => 99.00000000000001 Expected value: 99.0 Thanks for your job every one! -- http://bugs.ruby-lang.org/