math.isNaN
This function reports whether the input is an IEEE 754 "not-a-number" value.
Syntax
math.isNaN(input)
Arguments
|
Argument |
Type |
Description |
|---|---|---|
|
input |
any |
The input to test |
Returns
|
Type |
Description |
|---|---|
|
boolean |
True, if the input is IEEE 754 "not-a-number". |
Examples
The function math.isNaN(1.0) returns false.