
5 Dec
2007
5 Dec
'07
8:44 p.m.
On Wed, Dec 05, 2007 at 09:18:38AM +0100, Ketil Malde wrote:
Stefan O'Rear
writes: It's rather worse than that.
Prelude> let nan = 0/0 Prelude> nan > nan False Prelude> nan < nan False Prelude> nan == nan False
And this begs the question:
Prelude> compare nan nan GT
So while NaN is greater than itself, it is at the same time not greater than itself?
There is a case to be made for Ord Double to use the trapping comparison operators. Stefan