Determines whether the specified Double represents infinity.
[Visual Basic] Public Shared Function IsInfinity( _ ByVal d As Double _ ) As Boolean [C#] public static bool IsInfinity( double d ); [C++] public: static bool IsInfinity( double d ); [JScript] public static function IsInfinity( d : double ) : Boolean;
true if the number equals PositiveInfinity or NegativeInfinity; otherwise. false.
This method is equivalent to the methods IsNegativeInfinity or IsPositiveInfinity.
(In addition see CultureInfo, NumberFormatInfo, PositiveInfinity, NegativeInfinity, and NaN.)