Elementary.IsInfinite(Single) Method

Returns whether the specified float-precision floating-point number equals positive or negative infinity.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static bool IsInfinite(
	float x
)

Parameters

x  Single
A float-precision floating-point number.

Return Value

Boolean
true if x is not NaN and not infinite; otherwise false.

Remarks

This method is significantly faster than the IsNaN(Double) method in many situations.

See Also