From: Tim Hunter Date: 2008-05-27T07:56:42+09:00 Subject: Re: Why doesn't Float() work the same as Integer()? Michael W. Ryder wrote: > I can not see how you can say that 0.1 != 1/10. I tried looking up the > standard but the paper I looked at, about implementing the standard in a > language, made no mention of converting floating point numbers to > rational numbers. Ruby uses binary numbers, not decimal numbers. In binary, 1/10 cannot be represented exactly, just like 1/3 cannot be represented exactly in decimal. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html