
22 Mar
2007
22 Mar
'07
1:17 a.m.
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

23 Mar
23 Mar
2:20 p.m.
Hi Ian
main = do print (1/0 :: Double) print ((-1)/0 :: Double) print (0/0 :: Double)
1.797693134862316e308 -1.797693134862316e308 2.696539702293474e308
Bug raised: http://code.google.com/p/yhc/issues/detail?id=139 Thanks Neil
6683
Age (days ago)
6684
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ian Lynagh
-
Neil Mitchell