floating point verification using is?
Steven Schveighoffer
schveiguy at yahoo.com
Fri Dec 18 08:22:07 PST 2009
If I have 2 identical floating point values, how do I ensure they are
binary equivalents of eachother? I'm trying to write some unittest/assert
code, and it's not exactly trivial.
I thought 'a is b' would work, but it just morphs into a == b, which isn't
helpful. Why doesn't 'is' just do a bit compare for floating points?
-Steve
More information about the Digitalmars-d-learn
mailing list