🏠 New in High Baseline Support: Math and numbers
January 29, 2018
The 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
).
Source features
javascript.builtins.Infinity
[mdn]javascript.builtins.Math
[mdn]javascript.builtins.Math.E
[mdn]javascript.builtins.Math.LN10
[mdn]javascript.builtins.Math.LN2
[mdn]javascript.builtins.Math.LOG10E
[mdn]javascript.builtins.Math.LOG2E
[mdn]javascript.builtins.Math.PI
[mdn]javascript.builtins.Math.SQRT1_2
[mdn]javascript.builtins.Math.SQRT2
[mdn]javascript.builtins.Math.abs
[mdn]javascript.builtins.Math.acos
[mdn]javascript.builtins.Math.asin
[mdn]javascript.builtins.Math.atan
[mdn]javascript.builtins.Math.atan2
[mdn]javascript.builtins.Math.ceil
[mdn]javascript.builtins.Math.cos
[mdn]javascript.builtins.Math.exp
[mdn]javascript.builtins.Math.floor
[mdn]javascript.builtins.Math.log
[mdn]javascript.builtins.Math.max
[mdn]javascript.builtins.Math.min
[mdn]javascript.builtins.Math.pow
[mdn]javascript.builtins.Math.random
[mdn]javascript.builtins.Math.round
[mdn]javascript.builtins.Math.sin
[mdn]javascript.builtins.Math.sqrt
[mdn]javascript.builtins.Math.tan
[mdn]javascript.builtins.NaN
[mdn]javascript.builtins.Number
[mdn]javascript.builtins.Number.MAX_VALUE
[mdn]javascript.builtins.Number.MIN_VALUE
[mdn]javascript.builtins.Number.NEGATIVE_INFINITY
[mdn]javascript.builtins.Number.NaN
[mdn]javascript.builtins.Number.Number
[mdn]javascript.builtins.Number.POSITIVE_INFINITY
[mdn]javascript.builtins.Number.toString
[mdn]javascript.builtins.Number.valueOf
[mdn]javascript.builtins.isNaN
[mdn]javascript.builtins.parseInt
[mdn]javascript.grammar.decimal_numeric_literals
[mdn]javascript.grammar.hexadecimal_numeric_literals
[mdn]javascript.builtins.Number.toExponential
[mdn]javascript.builtins.Number.toFixed
[mdn]javascript.builtins.Number.toPrecision
[mdn]javascript.builtins.Math.imul
[mdn]javascript.builtins.Math.acosh
[mdn]javascript.builtins.Math.asinh
[mdn]javascript.builtins.Math.atanh
[mdn]javascript.builtins.Math.cbrt
[mdn]javascript.builtins.Math.cosh
[mdn]javascript.builtins.Math.expm1
[mdn]javascript.builtins.Math.log10
[mdn]javascript.builtins.Math.log1p
[mdn]javascript.builtins.Math.log2
[mdn]javascript.builtins.Math.sinh
[mdn]javascript.builtins.Math.tanh
[mdn]javascript.builtins.Math.trunc
[mdn]javascript.builtins.Math.fround
[mdn]javascript.builtins.Math.hypot
[mdn]javascript.builtins.Math.clz32
[mdn]javascript.builtins.Number.isFinite
[mdn]javascript.builtins.Number.isNaN
[mdn]javascript.builtins.Number.isInteger
[mdn]javascript.builtins.Number.EPSILON
[mdn]javascript.builtins.Number.parseFloat
[mdn]javascript.builtins.Number.parseInt
[mdn]javascript.builtins.Number.MAX_SAFE_INTEGER
[mdn]javascript.builtins.Number.MIN_SAFE_INTEGER
[mdn]javascript.builtins.Number.isSafeInteger
[mdn]javascript.builtins.Math.sign
[mdn]javascript.grammar.binary_numeric_literals
[mdn]javascript.grammar.octal_numeric_literals
[mdn]