This project is archived and is in readonly mode.

#2071 ✓resolved
Arndt Touby

[VERIFIED] number_to_precision rounding error

Reported by Arndt Touby | February 25th, 2009 @ 02:57 PM

number_with_precision( 32.675, :prescision => 2 ) outputs "32,67" and not "32,68" as expected.

number_with_precision( 31.675, :prescision => 2 ) outputs "31,68" as expected.

This occurred in Rails 2.2.2

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