NaN()

语法

Result.f = NaN()
概要
Returns the special floating-point value representing 'Not a Number'. This value is returned from invalid calculations such as calculating the square root of a negative number.

参数

无.

返回值

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

Remarks

NaN is a special value. Using NaN in any calculation with other values will again return the value NaN. The IsNaN() function can be used to check whether a variable represents the value NaN.

示例

  Debug IsNaN(NaN() * 5 + 2) ; will display 1

参阅

IsNaN(), Infinity()

已支持操作系统

所有

<- Mod() - Math Index - Pow() ->