checking double.nan

monarch_dodra monarchdodra at gmail.com
Fri Jan 4 08:36:14 PST 2013


On Friday, 4 January 2013 at 16:29:13 UTC, bearophile wrote:
> monarch_dodra:
>
>> std.math.isNaN only works for floats.
>
> The signature of the function shows it accepts a real:
>
> pure nothrow @trusted bool isNaN(real x);
>
> Bye,
> bearophile

I am retarded. I had a compile error I miss-read, and was thrown 
of by "real" (not used to seeing it).

Thanks.


More information about the Digitalmars-d-learn mailing list