This project is archived and is in readonly mode.

#4306 ✓resolved
Bernardo Padua

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

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

Pages