JS Built-ins
NumberNEGATIVE_INFINITYbeginner

Number.NEGATIVE_INFINITY β€” comparison with MIN_VALUE

πŸ“– Usage Example
// Represents negative infinity
Number.NEGATIVE_INFINITY          // β†’ -Infinity
-1 / 0 === Number.NEGATIVE_INFINITY   // β†’ true

Use Number.NEGATIVE_INFINITY to represent or compare against negative infinity, such as when a computation underflows.

NEGATIVE_INFINITY vs MIN_VALUE

Number.NEGATIVE_INFINITY is less than Number.MIN_VALUE (the smallest positive number).

πŸ’‘ Hints (1)
  • β€’ `NEGATIVE_INFINITY` is less than every finite number, including the tiny positive `MIN_VALUE`.