Results 1 - 20 of 44
Math
is a built-in object that has properties and methods for mathematical constants and functions. Not a function object.
The Math.abs()
function returns the absolute value of a number, that is
The Math.acos()
function returns the arccosine (in radians) of a number, that is
The Math.acosh()
function returns the hyperbolic arc-cosine of a number, that is
The Math.asin()
function returns the arcsine (in radians) of a number, that is
The Math.asinh()
function returns the hyperbolic arcsine of a number, that is
The Math.atan()
function returns the arctangent (in radians) of a number, that is
The Math.atan2()
function returns the arctangent of the quotient of its arguments.
The Math.atanh()
function returns the hyperbolic arctangent of a number, that is
The Math.cbrt()
function returns the cube root of a number, that is
The Math.ceil()
function returns the smallest integer greater than or equal to a given number.
The Math.cos()
function returns the cosine of a number.
The
Math.cosh()
function returns the hyperbolic cosine of a number, that can be expressed using the
constant e:
The Math.E
property represents the base of natural logarithms, e, approximately 2.718.
The
Math.expm1()
function returns
ex - 1
, where
x
is the argument, and
e the base of the natural logarithms.
The Math.floor()
function returns the largest integer less than or equal to a given number.
The
Math.fround()
function returns the nearest
single precision float representation of a number.
The Math.hypot()
function returns the square root of the sum of squares of its arguments, that is
The Math.imul()
function returns the result of the C-like 32-bit multiplication of the two parameters.