Mono Class Library: System.Double Overview | Members

System.Double.IsNaN Method

Determines whether the value of the specified double is undefined (Not-a-Number). [Edit]

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public static bool IsNaN (double d)

Parameters

d
The double to be checked. [Edit]

Returns

true if d represents a NaN value; otherwise false. [Edit]

Remarks

Note: Floating-point operations return NaN values to signal that the result of the operation is undefined. For example, dividing (Double) 0.0 by 0.0 results in a NaN value.
[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0