Rational sequence

Frank Atanassow franka@cs.uu.nl
Tue, 22 Oct 2002 15:08:32 +0200


Jerzy Karczmarczuk wrote (on 22-10-02 13:05 +0200):
> What do you think, what
> is the Rational form of 2.3 ? (GHCi says 23/10).
> 
> The answer is:
> 
> 2589569785738035 % 1125899906842624

Er, why?

Because 2.3 is not representable using a double precision float or something?

-- 
Frank