IsNaN Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a value that indicates whether the specified value is not a number (NaN).

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static bool IsNaN(
	double d
)

Parameters

d
Type: System..::..Double
A double-precision floating-point number.

Return Value

Type: System..::..Boolean
true if d evaluates to NaN; otherwise, false.

Floating-point operations return NaN to signal that that result of the operation is undefined. For example, dividing 0.0 by 0.0 results in NaN.

Show: