Re: Different NaNs used

2011-06-29 Thread Lars T. Kyllingstad
On Mon, 27 Jun 2011 16:41:14 -0400, bearophile wrote: 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() {

Re: Different NaNs used

2011-06-29 Thread bearophile
Lars T. Kyllingstad: real.init is a signaling NaN, real.nan is not. I don't know if this is by design, but I suppose it may be: Thank you for your probably correct hypothesis :-) Bye, bearophile

Different NaNs used

2011-06-27 Thread bearophile
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