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.

number_with_precision raises error if 0 is passed and :significant is true

#4306

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...

Reported by Bernardo Padua · April 1st, 2010 @ 05:07 AM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: none