Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[patch] number_to_human(0) causes exception

#5532

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

Reported by Ben Sharpe · September 2nd, 2010 @ 02:52 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Ben Sharpe
  2. Ben Sharpe
    Ben Sharpe
    • Tag set to patch actionpack number_helper

    September 2nd, 2010 @ 04:10 PM

  3. Ben Sharpe
    Ben Sharpe
    • Tag changed from patch actionpack number_helper to actionpack, number_helper, patch, rails3

    September 2nd, 2010 @ 04:11 PM

  4. Ben Sharpe
    Ben Sharpe
    • Title changed from number_to_human(0) causes exception to [patch] number_to_human(0) causes exception

    September 2nd, 2010 @ 04:13 PM

  5. Repository
  6. Repository