**Infinity()**

**Syntax**

Result.f =Infinity()

Returns the special floating-point value representing positive infinity. Negative infinity can be calculated using "-Infinity()".

**Parameters**

None.

**Return value**

Returns the value representing infinity. The result is a float or double value depending on whether it is assigned to a float or double variable.

**Remarks**

Infinity and negative infinity are special values. They behave in calculations in the way you would generally expect. For example dividing infinity by any positive number (except 0 or infinity) will result in infinity again. The IsInfinity() function can be used to check if a value represents positive or negative infinity.

**Example**

DebugIsInfinity(Infinity() / 1000) ; will display 1

**See Also**

IsInfinity(), NaN()

**Supported OS **

All