isnan()

Indicates whether the returned value of a mathematical function is a NaN (Not a Number).

Synopsis

bool isnan (float x);

Parameters

Parameter Description
x Value to be checked.

Return Value

Returns TRUE, if the "x" value is a NaN. If the function isnan is used with a mathematical functions such as pow(-2, 0.5), it returns 0.

Description

The function checks if the specified value of the specified mathematical function is a NaN (Not a Number).

Example

main()
{
  float f;
  f=pow(2.0, 8.0); // Natural 256
  DebugN(isnan(f)); // Returns FALSE
}

Assignment

Mathematical function

Availability

CTRL