Re: `== and nan - docs accuracy?

Henrik Grubbström <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Organization Roxen Internet Software AB
Message-ID <[email protected]>
On Fri, 23 May 2014, Chris Angelico wrote:

> On Fri, May 23, 2014 at 8:35 PM, Per Hedbor () @ Pike (-) importmöte
> för mailinglistan <[email protected]> wrote:
>>> 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.
>
> Thanks for the confirmation. Patch attached to reword the docs.

Thanks, applied in Pike 8.0.

> ChrisA

-- 
Henrik Grubbström					[email protected]
Roxen Internet Software AB
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.