Skip to content

isinf

math.isinf(x)

Checks if a number is infinite.

ParameterTypeRequiredDescription
xnumberYesThe number to check.
TypeDescription
booleantrue if the number is infinite, false otherwise.
math.isinf(math.huge) -- true
math.isinf(101969285) -- false