Different NaNs used

bearophile bearophileHUGS at lycos.com
Mon Jun 27 13:41:14 PDT 2011


This question is related to this thread:
http://d.puremagic.com/issues/show_bug.cgi?id=3632

Can you tell me why real.nan and real.init don't contain the same bit patterns?


import std.math: isIdentical;
void main() {
    assert(isIdentical(real.nan, real.init)); // this asserts
}

Bye and thank you,
bearophile


More information about the Digitalmars-d-learn mailing list