infinity() Function

Represents a constant number that stands for positive infinity or a negative infinity if you negate the value.

Syntax

infinity()

Returns

Decimal

Examples

You can experiment with this function in the test box below.

Test Input

infinity() returns

FEEDBACK