EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

Double.PositiveInfinity Field

July 28, 2014

Represents positive infinity. This field is constant.

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

public const double PositiveInfinity

The value of this constant is the result of dividing a positive number by zero.

This constant is returned when the result of an operation is greater than MaxValue.

Use IsPositiveInfinity to determine whether a value evaluates to positive infinity. It is not possible to determine whether a value evaluates to positive infinity by comparing it to another value equal to PositiveInfinity.

The following example illustrates the use of PositiveInfinity:


// This will equal Infinity.
outputBlock.Text += String.Format("PositiveInfinity plus 10.0 equals {0}.", (Double.PositiveInfinity + 10.0).ToString()) + "\n";


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Mostrar:
© 2014 Microsoft