Please quote when replying.
Jeff Burlysystems wrote in post #970344:
> Or just change the way you calculate to get at the level of accuracy
> that you want/need:
>
> irb> ("291.15".to_f * 1000.0).to_i/10
> => 29115
That's incredibly silly IMHO. Besides, it will not always be the same
for all values, will it? I think BigDecimal is the right answer here.
>
> Jeff
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.