Table of Contents

Method IsInfinityOrNanOrMax

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

IsInfinityOrNanOrMax(double)

Determines whether the specified double-precision floating-point value is NaN, infinite, or equal to the maximum representable value.

public static bool IsInfinityOrNanOrMax(double value)

Parameters

value double

The double-precision floating-point value to evaluate.

Returns

bool

true if value is NaN, infinite, or equal to MaxValue; otherwise, false.

Remarks

This method can be used to validate or filter double values that are not finite or exceed typical numeric ranges.

IsInfinityOrNanOrMax(float)

Determines whether the specified floating-point value is NaN, infinite, or equal to the maximum representable value.

public static bool IsInfinityOrNanOrMax(float value)

Parameters

value float

The floating-point value to evaluate.

Returns

bool

true if value is NaN, infinite, or equal to MaxValue; otherwise, false.

Remarks

This method can be used to validate or filter floating-point values that are not finite or exceed typical numeric ranges.