Infinity()

语法

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

参数

无.

返回值

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.

示例

  Debug IsInfinity(Infinity() / 1000) ; will display 1

参阅

IsInfinity(), NaN()

已支持操作系统

所有

<- Exp() - Math Index - Int() ->