[Issue 3632] modify float is float to do a bitwise compare

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 27 14:56:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3632



--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> 2011-06-27 14:51:23 PDT ---
(In reply to comment #9)
> (In reply to comment #8)
> > This is intended. All nans are regarded as the same (even signalling and
> > non-signalling).
> So we have to use std.math.isIdentical() to tell apart floating point values on
> the base of the their bit patterns.

Do you have any need for this?

> Related: I think almost no one uses the NaN payloads because (beside being a
> niche need) almost no language gives easy and explicit support to manage those
> payloads (while in std.math there are functions like getNaNPayload).

I've been around numerics for 35 years now, and I've never seen a use for NaN
payloads. I've never seen anyone even propose a use. Until then, I suspect
supporting such would just cause problems.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list