Re: Is this a floating point precision problem?


#1

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