JavaScript Number Properties

About This Index
This page is the JavaScript Number Properties index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn what a Number is on /js/number. Use this page when you need a specific constant such as EPSILON, MAX_SAFE_INTEGER, or NaN.
Read Number.EPSILON, not (1).EPSILON. These are constants on the constructor—not instance fields.
How to Read a Number Property
Properties are values—no parentheses:
Number.EPSILON // ~2.22e-16
Number.MAX_SAFE_INTEGER // 9007199254740991
Number.MIN_SAFE_INTEGER // -9007199254740991
Number.MAX_VALUE // ~1.8e+308
Number.MIN_VALUE // ~5e-324
Number.POSITIVE_INFINITY // Infinity
Number.NEGATIVE_INFINITY // -Infinity
Number.NaN // NaN JavaScript Number Properties Table
All property guides in this JavaScript tutorial series (9 tutorials).
Precision & magnitude
3 propertiesFloating-point spacing and the largest / smallest positive finite values.
| Property | Description | Tutorial |
|---|---|---|
EPSILON | Difference between 1 and the next representable Number — tiny tolerance near magnitude 1. | Try it |
MAX_VALUE | Largest positive finite Number (~1.8e+308) — larger results become Infinity. | Try it |
MIN_VALUE | Smallest positive Number (~5e-324) — smaller results underflow toward 0. | Try it |
Safe integers
2 propertiesExact integer range for Number — use BigInt outside these limits.
| Property | Description | Tutorial |
|---|---|---|
MAX_SAFE_INTEGER | Largest exact integer Number (2^53 − 1) — beyond it, use BigInt. | Try it |
MIN_SAFE_INTEGER | Smallest exact integer Number (−(2^53 − 1)) — below it, use BigInt. | Try it |
Special values
3 propertiesInfinity constants and Not-A-Number.
| Property | Description | Tutorial |
|---|---|---|
POSITIVE_INFINITY | Positive Infinity — same as global Infinity; appears after overflow past MAX_VALUE. | Try it |
NEGATIVE_INFINITY | Negative Infinity — same as -Infinity; appears after overflow past -MAX_VALUE. | Try it |
NaN | Not-A-Number — same as global NaN; never equals itself (use Number.isNaN). | Try it |
Prototype
1 propertyThe shared Number.prototype object for instance methods.
Frequently Asked Questions
Start with EPSILON
Open the first property guide—syntax, examples, and FAQs.
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.
8 people found this page helpful
