isinf
Signature
Section titled “Signature”math.isinf(x)Description
Section titled “Description”Checks if a number is infinite.
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 infinite, false otherwise. |
Examples
Section titled “Examples”math.isinf(math.huge) -- truemath.isinf(101969285) -- false