From: Pit Capitain Date: 2008-05-26T18:32:58+09:00 Subject: Re: Why doesn't Float() work the same as Integer()? 2008/5/21 Michael W. Ryder <_mwryder@worldnet.att.net>: > The method allows Rational.new(3.5) and returns 7/2 I would be very careful with converting Floats to Rationals. You know that Rational.new(0.1) wouldn't return 1/10? If not you should read about IEEE 754, which is the basis for Ruby's floating point numbers. Regards, Pit