Math and numbers
Widely availableThe number type (and Number
object) represents floating-point numbers, such as 42 or -4.201, while the Math
API contains mathematical functions and constants. JavaScript can also represent boundless negative and positive values as Infinity
or not-a-number as NaN
(as in 0 * Infinity
).