On Fri, 11 Jan 2008 08:34:10 +0200, Don Stewart <[EMAIL PROTECTED]> wrote:
NaN is not 'undefined'
(0/0) /= (0/0) is True
(0/0) == (0/0) is False
You can use these to test for NaN.
You can also use isNaN :)
Prelude> isNaN (1/0)
False
Prelude> isNaN (0/0)
True
Not true in Hugs.
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
part000.txt - is OK
http://www.eset.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe