This project is archived and is in readonly mode.
[VERIFIED] number_to_precision rounding error
-
CancelProfileIsBroken
- Tag set to 2.2.2, bug, bugmash, error
-
Rizwan Reza
- Tag changed from 2.2.2, bug, bugmash, error to 2.2.2, 2.3.x, bug, bugmash, error
verified
+1 This bug is present in 2.3.3 as well.
-
anupom syam
- seems like this is an issue with Ruby.
irb(main):080:0> 3267.5.round => 3268 irb(main):081:0> (32.675 * 100.00) => 3267.5 irb(main):082:0> (32.675 * 100.00).round => 3267 irb(main):083:0> 3267.5.round => 3268 -
anupom syam
by the way I meant +1 :P
-
Wesley Moxam
I've attached a patch containing a test and a fix.
-
Dan Pickett
verified +1
-
Ryan Bigg
+1 Patch applies cleanly and all tests pass
-
Ryan Bigg
- Title changed from number_to_precision rounding error to [VERIFIED] number_to_precision rounding error
-
Repository
- State changed from new to resolved
(from [98450fd168673c6bc698b3b2d3c264a9cd70a464]) Fix number_to_precision rounding error [#2071 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/98450fd168673c6bc698b3b2d3c264... -
CancelProfileIsBroken
- Tag changed from 2.2.2, 2.3.x, bug, bugmash, error to 2.2.2, 2.3.x, bug, error
- Milestone cleared.
