checking double.nan

bearophile bearophileHUGS at lycos.com
Fri Jan 4 08:29:12 PST 2013


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


More information about the Digitalmars-d-learn mailing list