IsInfinity Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a value indicating whether the specified number evaluates to negative or positive infinity

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static bool IsInfinity(
	double d


Type: System..::..Double
A double-precision floating-point number.

Return Value

Type: System..::..Boolean
true if d evaluates to PositiveInfinity or NegativeInfinity; otherwise, false.

Floating-point operations return PositiveInfinity or NegativeInfinity to signal an overflow condition.