[Haskell-cafe] 0/0 > 1 == False
Cristian Baboi
cristi at ot.onrc.ro
Fri Jan 11 01:58:35 EST 2008
On Fri, 11 Jan 2008 08:34:10 +0200, Don Stewart <dons at galois.com> 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
More information about the Haskell-Cafe
mailing list