Share via


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)

Syntax

'Declaration
Public Shared Function IsNaN ( _
    d As Double _
) As Boolean
public static bool IsNaN(
    double d
)
public:
static bool IsNaN(
    double d
)
static member IsNaN : 
        d:float -> bool 
public static function IsNaN(
    d : double
) : boolean

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Double Structure

System Namespace