Skip to content

Understanding Numbers in JavaScript

There are two types of numbers in JavaScript:

Let’s talk about regular numbers first.

In Javascript regular numbers are stored as 64-bit floating point numbers, following the IEEE 754 standard.

They are limited by the precision of the floating point representation, which is 53 bits.

Here is the format of the 64-bit floating point number:

Material