System.Double.IsInfinity Method

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

Syntax

public static bool IsInfinity (double d)

Parameters

d
A double-precision floating-point number.

Returns

true if d evaluates to double.PositiveInfinity or double.NegativeInfinity; otherwise, false.

Remarks

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

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0