Math

The Math object is a namespace for mathematical functions and constants.

Note

Math works with number (or Number) values, but not BigInt, BigFloat, BigDecimal, or Fraction. For those use similarly named global functions: for example, instead of Math.sin() use sin(), which works for all number types.

Syntax

Math

Properties