problem with isnan
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 10 08:47:30 PST 2016
On Thursday, 10 November 2016 at 16:41:56 UTC, Charles Hixson
wrote:
> It's *supposed* to be nan, and the assert message reports that
> it is, but it should pass the assert test, not throw an
> assertion. What am I doing wrong?
How did you set it? There are like billions of different NaNs.
I'm not sure if isnan checks for all of them. (I'm also not sure
that it doesn't, the docs don't specify.)
you might try using std.math.isNaN instead and see what it does.
More information about the Digitalmars-d-learn
mailing list