Results 221 - 240 of 885
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.
The Math.LN10
property represents the natural logarithm of 10, approximately 2.302:
The Math.LN2
property represents the natural logarithm of 2, approximately 0.693:
The
Math.log()
function returns the natural logarithm (base
e
) of a number, that is
The Math.LOG10E
property represents the base 10 logarithm of e, approximately 0.434:
The Math.LOG2E
property represents the base 2 logarithm of e, approximately 1.442:
The Math.max()
function returns the largest of zero or more numbers.
The Math.min()
function returns the smallest of zero or more numbers.
The Math.PI
property represents the ratio of the circumference of a circle to its diameter, approximately 3.14159:
The Math.pow()
function returns the base
to the exponent
power, that is, baseexponent
.
The Math.random()
function returns a floating-point, pseudo-random number in the range [0, 1)
that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range. The implementation selects the initial seed to the random number generation algorithm; it cannot be chosen or reset by the user.
The Math.round()
function returns the value of a number rounded to the nearest integer.
The Math.sign()
function returns the sign of a number, indicating whether the number is positive, negative or zero.
The Math.sin()
function returns the sine of a number.
The Math.sqrt()
function returns the square root of a number, that is
The Math.SQRT1_2
property represents the square root of 1/2 which is approximately 0.707: