Infinity

Try it yourself:


Infinity: an unbounded value

Infinity represents an unbounded positive value in calculations. It is useful for limits and sentinel values, but it is not an ordinary finite number.

Safe handling

Use isFinite() to reject it from ordinary totals, and isBounded() when validating ranges. max() and min() may legitimately involve infinite bounds.

Caveat

Expressions such as Infinity minus Infinity are undefined; use limits or reformulate the problem rather than expecting ordinary arithmetic.

Use Infinity in a calculation

Enter Infinity on a calculator line to see its built-in value, or place the name inside a longer expression. Keep any displayed unit attached when converting or combining physical quantities, and check that every other value uses a compatible dimension.

The example above is editable, so you can replace surrounding values and test the constant in your own formula. Browse all constants to compare related values and notation.

All constants