From: Piers Cawley Date: 2001-07-30T17:02:10+09:00 Subject: [ruby-talk:18787] Re: Numbers classes.. Rational number? [was: Ruby as opposed to Python?] Baschino writes: > Kero van Gelder wrote: > > > 12345678901234567890 / 1.0 => 1.23456789e+19 > > > which actually looses accuracy, by automatically converting to float, > > > instead of BigNum. This would be an argument to drop automatic > > conversion for floats. You could still convert automatically with > > Numerics and Rationals, since you loose nothing (and should expect a > > Rational anyway). > > > > > Of course, the number 1.0 is imprecise so you don't loose accuracy. Ooh... real numbers that carried information about precision would be rather cool... -- Piers Cawley www.iterative-software.com