[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Is this a floating point precision problem?

Nuralanur

1/30/2006 10:43:00 PM

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/Rati...
(http://www.ruby-doc.org/stdlib/libdoc/rational/rdoc/classes/Rat...)

Best regards,

Axel