This project is archived and is in readonly mode.

#5532 ✓resolved
Ben Sharpe

[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

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=""></a>

People watching this ticket


Referenced by