isnan
Signature
Section titled “Signature”math.isnan(x)Description
Section titled “Description”Checks if a value is NaN (Not a Number).
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| x | number | Yes | The value to check. |
Return Values
Section titled “Return Values”| Type | Description |
|---|---|
boolean | true if the value isn’t a number, false otherwise. |
Examples
Section titled “Examples”math.isnan(69514) -- falsemath.isnan(math.nan) -- true