Package java.lang
Class Float

Public Method isNaN

boolean isNaN()

static boolean isNaN(float v)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

isNaN() method:

Returns true if this Float value is Not-a-Number (NaN).

isNaN(float v) method:

Returns true if the specified number is the special Not-a-Number (NaN) value.

Example

   if (Float.isNaN(20.23465f))
      Logger.log("the specified number is NaN");

The example above returns true if the value is not a number.