JavaScript Number.NEGATIVE_INFINITY Property

Beginner
5 min read
Updated: Nov 2026
3 examples
Property

Definition

Number.NEGATIVE_INFINITY is the IEEE-754 value -Infinity — the same as -Infinity and -Number.POSITIVE_INFINITY. Results more negative than -Number.MAX_VALUE overflow to it. It is a static property, not a method.

Read the notes below before you rely on this property. Prefer feature detection when support is limited.

Syntax

Use Number.NEGATIVE_INFINITY. Start with this line.

JavaScript
Number.NEGATIVE_INFINITY
CallWhat it does
Number.NEGATIVE_INFINITYPrimary signature.

Built into JavaScript. Read Number.NEGATIVE_INFINITY on the Number constructor — no import required.

Library declarations
JavaScript
Number.NEGATIVE_INFINITY

Parameters

This member has no parameters beyond those shown in the signature.

Return Value

Return ValueDescription
*The current value of Number.NEGATIVE_INFINITY.

JavaScript Examples

Example 1 — Read Number.NEGATIVE_INFINITY

Confirm it matches the -Infinity literal.

JavaScript
console.log(Number.NEGATIVE_INFINITY);
console.log(Number.NEGATIVE_INFINITY === -Infinity);
console.log(-1 / 0);
Try It Yourself

How It Works

  1. Static access. Read Number.NEGATIVE_INFINITY on the constructor.
  2. Same bits. It equals the -Infinity literal.
  3. Division form. -1 / 0 is a common way to produce the same value.
  4. Not a method. There is no (1).NEGATIVE_INFINITY.

Example 2 — Overflow Past -MAX_VALUE

Finite floor vs true negative infinity after overflow.

JavaScript
console.log(-Number.MAX_VALUE);                 // finite
console.log(-Number.MAX_VALUE * 2);             // -Infinity
console.log(-Number.MAX_VALUE * 2 === Number.NEGATIVE_INFINITY);
Try It Yourself

How It Works

  1. Most negative finite. -Number.MAX_VALUE is still a real finite Number.
  2. Double it. The product cannot stay finite → -Infinity.
  3. Named match. That result equals Number.NEGATIVE_INFINITY.
  4. Guard math. Detect overflow before formatting or storing results.

Example 3 — Guard with Number.isFinite

Treat -Infinity like other non-finite values.

JavaScript
console.log(Number.isFinite(Number.NEGATIVE_INFINITY)); // false
console.log(Number.isFinite(-3.5));                     // true
console.log(Number.NEGATIVE_INFINITY === -Number.POSITIVE_INFINITY);
Try It Yourself

How It Works

  1. Not finite. Number.isFinite(-Infinity) is false.
  2. Normals pass. Ordinary numbers like -3.5 still return true.
  3. Sign flip. Negating POSITIVE_INFINITY yields the same constant.
  4. Use as a gate. Prefer isFinite before toFixed or charts.

Browser & Runtime Support

Number.NEGATIVE_INFINITY has been available for many years and is Baseline Widely available in modern browsers and Node.js.

✓ Baseline · Widely available

Number.NEGATIVE_INFINITY

Supported in Chrome, Firefox, Safari, Edge, and Node.js. Safe for modern apps without a polyfill.

99% Modern browser support
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
Number.NEGATIVE_INFINITY Excellent

Bottom line: Use Number.NEGATIVE_INFINITY or -Infinity freely. Prefer Number.isFinite when you need to reject all non-finite values.

Frequently Asked Questions

Number.NEGATIVE_INFINITY is the negative Infinity value on Number. It is the same as -Infinity (and -Number.POSITIVE_INFINITY). Example: -Number.MAX_VALUE * 2 equals Number.NEGATIVE_INFINITY.
Yes. Read it on Number itself: Number.NEGATIVE_INFINITY. There is no (5).NEGATIVE_INFINITY on number instances, and it is not a method.
They are opposite IEEE-754 infinities. Number.NEGATIVE_INFINITY === -Number.POSITIVE_INFINITY is true. Both are non-finite numbers.
Compare with Number.NEGATIVE_INFINITY, or use Number.isFinite(x) which returns false for Infinity, -Infinity, and NaN.
No. -Number.MAX_VALUE is still a finite Number (the most negative finite). Going more negative — for example -Number.MAX_VALUE * 2 — becomes Number.NEGATIVE_INFINITY.
It is Baseline Widely available and supported in every modern browser and Node.js.

Next: NaN

Learn Number.NaN — why NaN never equals itself and how to detect it safely.

NaN tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

9 people found this page helpful