Re: Is this a floating point precision problem?

Again, if speed is not a paramount concern, you could use fractions
in your calculations:
http://www.ruby-doc.org/stdlib/libdoc/rational/rdoc/classes/Rational.html
(http://www.ruby-doc.org/stdlib/libdoc/rational/rdoc/classes/Rational.html)

Best regards,

Axel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs