Number

Number represents numerical values. Numbers are double-precision 64-bit binary format IEEE 754 values.

Numbers can be created using literals, such as 42 or 3.14159, or using the Number constructor. If the constructor is called with new, the Number object is created. If the constructor is called without new, a primitive number value is created.

NaN, Infinity, and -Infinity are also number values.

Properties

Prototype Properties