This project is archived and is in readonly mode.
number_with_precision raises error if 0 is passed and :significant is true
Reported by Bernardo Padua | April 1st, 2010 @ 05:07 AM
I found a bug in my own patch. When passing 0 to
number_with_precision
(and other helpers that rely on
it), if :significant => true
, an error (since it
tries to call floor
on -Infinite
) will be
raised.
Tests and fix to follow in a few seconds...
Comments and changes to this ticket
-
Bernardo Padua April 1st, 2010 @ 05:20 AM
- no changes were found...
-
Repository April 1st, 2010 @ 06:25 AM
- State changed from new to resolved
(from [81e69332466003732846bd7dbc04e8550bfe16a1]) Fix error in number_with_precision with :significant option and zero value [#4306 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/81e69332466003732846bd7dbc04e8...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 4306 number_with_precision raises error if 0 is passed and :significant is true (from [81e69332466003732846bd7dbc04e8550bfe16a1]) Fix err...