Floats and Doubles

Jan Kort kort@science.uva.nl
Wed, 13 Nov 2002 12:09:51 +0100


Juan Ignacio Garcia Garcia wrote:
> *P2> (fromRational ((toRational 4) - ( toRational 5.2 )))
> -1.2000000000000002

I can't explain this one, how would fromRational
know that it has to create a Double ?

  Jan