Forum: Ruby Re: Is this a floating point precision problem?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67bb4df2775f6a6b603347dce7119571?d=identicon&s=25 unknown (Guest)
on 2006-01-30 23:45
(Received via mailing list)
Again, if speed is not a paramount concern, you could use fractions
in your calculations:
_http://www.ruby-doc.org/stdlib/libdoc/rational/rdo...
(http://www.ruby-doc.org/stdlib/libdoc/rational/rdo...)

Best regards,

Axel
This topic is locked and can not be replied to.