This project is archived and is in readonly mode.
[patch] number_to_human(0) causes exception
Reported by Ben Sharpe | September 2nd, 2010 @ 02:52 PM
number_to_human(0) causes a FloatDomainError
The offending line appears to be line 462 in number_helper.rb
number_exponent = Math.log10(number).floor
Math.log10(0) == -Infinity
Comments and changes to this ticket
-
Ben Sharpe September 2nd, 2010 @ 04:10 PM
- Tag set to patch actionpack number_helper
-
Ben Sharpe September 2nd, 2010 @ 04:11 PM
- Tag changed from patch actionpack number_helper to actionpack, number_helper, patch, rails3
-
Ben Sharpe September 2nd, 2010 @ 04:13 PM
- Title changed from number_to_human(0) causes exception to [patch] number_to_human(0) causes exception
-
Repository September 5th, 2010 @ 02:24 PM
- State changed from new to resolved
(from [b80cf265be083b158c915ccbb4af7ce5ac05aec7]) Fix number_to_human(0) exception [#5532 state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/b80cf265be083b158c915ccbb4af7c... -
Repository September 5th, 2010 @ 02:26 PM
(from [935fa9d6d57faa65b5a98040b3a9e152e815677e]) Fix number_to_human(0) exception [#5532 state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/935fa9d6d57faa65b5a98040b3a9e1...
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
- 5532 [patch] number_to_human(0) causes exception (from [b80cf265be083b158c915ccbb4af7ce5ac05aec7]) Fix num...
- 5532 [patch] number_to_human(0) causes exception (from [935fa9d6d57faa65b5a98040b3a9e152e815677e]) Fix num...