isfinite
Signature
Section titled “Signature”math.isfinite(x)Description
Section titled “Description”Checks if a number is finite (not infinity and not NaN).
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| x | number | Yes | The number to check. |
Return Values
Section titled “Return Values”| Type | Description |
|---|---|
boolean | true if the number is finite, false otherwise. |
Examples
Section titled “Examples”math.isfinite(101969285) -- truemath.isfinite(math.huge) -- false