From: dave.burt@... Date: 2005-10-11T14:16:52+09:00 Subject: Re: RCR 320: Extend Rational to play nice with floats Joel wrote: > > Rational("1.2e-3") #=> Rational(-3, 2500) > > A typo, right? Yes. Well spotted. irb> require 'rational_ext' => true irb> Rational("1.2e-3") => Rational(3, 2500) There's a working test script with a +3 in the expected result at http://www.dave.burt.id.au/ruby/rational_ext_test.rb Cheers, Dave