checking whether the number is NaN

Red resmith at lavabit.com
Fri Dec 28 08:48:27 PST 2012


>
>> Tell me please,are there any way to check whether number is 
>> NaN?
>
> http://dlang.org/phobos/std_math.html#isNaN
>


pure nothrow @trusted bool isNaN(real x);

Returns !=0 if e is a NaN.

-------------------
Seems like a slight documentation disagreement. Shows bool 
prototype but description says returns !=0


More information about the Digitalmars-d-learn mailing list