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