Table of Contents

Method IsInfinityOrNan

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsInfinityOrNan(double)

Determines whether the specified value is either infinite (positive or negative) or not a number (NaN).

public static bool IsInfinityOrNan(double value)

Parameters

value double

The double-precision floating-point number to evaluate.

Returns

bool

true if value is NaN, PositiveInfinity, or NegativeInfinity; otherwise, false.

IsInfinityOrNan(float)

Determines whether the specified value is either infinite (positive or negative) or not a number (NaN).

public static bool IsInfinityOrNan(float value)

Parameters

value float

The floating-point number to evaluate.

Returns

bool

true if value is NaN, PositiveInfinity, or NegativeInfinity; otherwise, false.