From: "alexr (Alexander Rusa)" Date: 2012-10-30T22:42:45+09:00 Subject: [ruby-core:48593] [ruby-trunk - Bug #7245][Open] Float.round result not as expected Issue #7245 has been reported by alexr (Alexander Rusa). ---------------------------------------- Bug #7245: Float.round result not as expected https://bugs.ruby-lang.org/issues/7245 Author: alexr (Alexander Rusa) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37164) [x86_64-darwin12.2.0] In my second example below I would expect "1.01" as result. 1.9.3-p286 :001 > 1.05.round(1) => 1.1 1.9.3-p286 :002 > 1.005.round(2) => 1.0 1.9.3-p286 :003 > 1.006.round(2) => 1.01 Is this a bug or am I wrong? -- http://bugs.ruby-lang.org/