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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 27 13:38:07 PDT 2011


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



--- Comment #9 from bearophile_hugs at eml.cc 2011-06-27 13:33:12 PDT ---
(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.

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).

-- 
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