`== and nan - docs accuracy?

"Per Hedbor () @ Pike (-) importm?te f?r mailinglistan" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
> This is correct behaviour per IEEE (NaN is not equal to anything,
> including itself), but the docs say that == returns true "iff the
> two floats are numerically equal or if both are NaN". Is this a docs
> bug, or is there something else going on here?

Well. Considering these testsuite testcases:

test_false( Math.nan == Math.nan )
test_true( Math.nan != Math.nan )

I would consider it to be a documatation issue.

-- 
Per Hedbor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.