INumberBase<TSelf>.IsInfinity(TSelf) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Determines if a value is infinite.

C#
public static abstract bool IsInfinity(TSelf value);

Parameters

value
TSelf

The value to be checked.

Returns

true if value is infinite; otherwise, false.

Remarks

A return value of false does not imply that IsFinite(TSelf) will return true. NaN is not finite or infinite.

Applies to

Product Versions
.NET 7, 8, 9, 10