Elementary.IsInfinite Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

IsInfinite(Double) Returns whether the specified double-precision floating-point number equals positive or negative infinity.
IsInfinite(Single) Returns whether the specified float-precision floating-point number equals positive or negative infinity.

IsInfinite(Double)

Returns whether the specified double-precision floating-point number equals positive or negative infinity.
C#
public static bool IsInfinite(
	double x
)

Parameters

x  Double
A double-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.

IsInfinite(Single)

Returns whether the specified float-precision floating-point number equals positive or negative infinity.
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