Atom

math.isinf()

Tests for positive or negative infinity.

Signature

math.isinf(x)

Parameters

One number.

Returns

Boolean.

Behavior

Uses floating classification.

Errors

Requires a number.

Example

Atom
use math
assert(math.isinf(-math.inf))