# Double.IsPositiveInfinity(Double)Double.IsPositiveInfinity(Double)Double.IsPositiveInfinity(Double)Double.IsPositiveInfinity(Double) Method

## Definition

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

``````public:
static bool IsPositiveInfinity(double d);``````
``public static bool IsPositiveInfinity (double d);``
``static member IsPositiveInfinity : double -> bool``
``Public Shared Function IsPositiveInfinity (d As Double) As Boolean``

#### Parameters

d
Double Double Double Double

A double-precision floating-point number.

#### Returns

`true` if `d` evaluates to PositiveInfinity; otherwise, `false`.

## Examples

The following code example illustrates the use of IsPositiveInfinity:

``````// This will return S"true".
Console::WriteLine( "IsPositiveInfinity(4.0 / 0) == {0}.", Double::IsPositiveInfinity( 4.0 / zero ) ? (String^)"true" : "false" );
``````
``````// This will return "true".
Console.WriteLine("IsPositiveInfinity(4.0 / 0) == {0}.", Double.IsPositiveInfinity(4.0 / 0) ? "true" : "false");
``````
``````' This will return "True".
Console.Write("IsPositiveInfinity(4.0 / 0) = ")
If Double.IsPositiveInfinity(4 / 0) Then
Console.WriteLine("True.")
Else
Console.WriteLine("False.")
End If
``````

## Remarks

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