# Numbers

# JS only has floating point numbers

There is only a single type for all numbers: They are all doubles, 64-bit floating point numbers implemented according to the IEEE Standard for Floating-Point Arithmetic (IEEE 754).

Integers are simply floating point numbers without a decimal fraction:

98 === 98.0;
1

# properties of integer literals

7.toString() // Error!
1

There are 4 way to get around this pitfall:

(7.0)
  .toString()(7)
  .toString();
(7).toString();
(7).toString();

// "7"
1
2
3
4
5
6
7