Hello,

the following expression

  fromRational $ 1000000000000000000000000000000000000000 % 1

doesn't terminate with the latest and other versions of Hugs
I tried under Linux and AIX.

Under SunOS, it terminates, but is not monotone:

  Prelude> fromRational $ 1000000000000000000000000000000000000000 % 1
  Inf.0
  Prelude> fromRational $ 1000000000000000000000000000000000000000 % 10
  1.0e+38
  Prelude> fromRational $ 1000000000000000000000000000000000000000 % 11
  Inf.0

And this is not because the numerator is too big and the fraction
cannot be cancelled down:

  Prelude> fromRational $ 1000000000000000000000000000000000000000 % 11111111 
  Inf.0
  Prelude> fromRational $ 1000000000000000000000000000000000000000 % 111111111
  9.0e+30

I don't need this repaired now, but you should know it anyhow.


All the best,
Christian Sievers

Reply via email to