Hi all,

This program:

main = do print (1/0 :: Double)
          print ((-1)/0 :: Double)
          print (0/0 :: Double)

prints some surprising values:

1.797693134862316e308
-1.797693134862316e308
2.696539702293474e308

Ideal would be these instead, to match GHC:

Infinity
-Infinity
NaN


Thanks
Ian

_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/yhc

Reply via email to