--- Comment #15 from Walter Bright <bugzi...@digitalmars.com> 2011-06-28
02:17:47 PDT ---
(In reply to comment #14)
> I use it all the time, mainly for distinguishing between +0.0 and -0.0
'is' does distinguish between +0 and -0. Just not -Nan and +Nan, nor the Nan
> But it's reasonable to argue that '+0.0 is -0.0' should return true, and if
> do that, then 'NaN is NaN' should also return true, regardless of the payload.
I believe those are entirely different situations. The sign of 0 has a
mathematical meaning to fp arithmetic, the sign/payload of Nan does not.
> NaN payloads were used extensively in Apple's SANE, to distinguish different
> error types. Eg,
I didn't know that. But it's worth noting that SANE has been dropped.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------