P
Pradeep Gatram
Hi,
I was trying to upgrade from 1.1.6 to 1.2.0 and noticed a strange
issue with floats. In Jruby 1.2.0, a float like 2.52342 is read as
2.52342009544373 from the DB.
A few steps to reproduce this.
1. Migration: t.float :reading
2. Fixture: reading: 2.52342
3. Run script/console
jruby script/console
Loading development environment (Rails 2.2.2)=> 2.52342009544373
Any idea if this has been logged as a bug or if there is a workaround?
I was trying to upgrade from 1.1.6 to 1.2.0 and noticed a strange
issue with floats. In Jruby 1.2.0, a float like 2.52342 is read as
2.52342009544373 from the DB.
A few steps to reproduce this.
1. Migration: t.float :reading
2. Fixture: reading: 2.52342
3. Run script/console
jruby script/console
Loading development environment (Rails 2.2.2)=> 2.52342009544373
Any idea if this has been logged as a bug or if there is a workaround?