IEEE 754
The international standard for how computers store floating-point numbers, used by JavaScript's number type.
In more detail
IEEE is the Institute of Electrical and Electronics Engineers, which publishes it. JavaScript numbers use its 64-bit double-precision format, which is why only whole numbers up to Number.MAX_SAFE_INTEGER are exact.
Related terms
- floating-point number — A number with a fractional part stored in binary, which can only approximate most decimal values.
- number (type) — The type of ordinary numeric values in JavaScript, both whole numbers and decimals, stored as 64-bit floating-point numbers.
- MAX_SAFE_INTEGER — The largest whole number, 9007199254740991, that a JavaScript number can store exactly.
Taught in
- Primitive Types: String, Number, Boolean, Bigint And Symbol — Production TypeScript