[Haskell-cafe] Re: Double -> CDouble, realToFrac doesn't work

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Fri Nov 5 09:26:41 EST 2004


MR K P SCHUPKE wrote:

 >Why is there no Irrational class. This would make more sense for
 >Floats and Doubles than the fraction based Rational class. We could
 >also add an implementation of infinite precision irrationals using
 >a pair of Integers for exponent and mantissa.

That would just be a subset of the rationals, namely the dyadic 
rationals (mantissa / 2^^exponent).

-- Ben



More information about the Glasgow-haskell-users mailing list