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

MR K P SCHUPKE k.schupke at imperial.ac.uk
Fri Nov 5 07:47:42 EST 2004


>I would be very careful of adding non-rationals to the Rational type.

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.

	Keean.


More information about the Glasgow-haskell-users mailing list