Results 21 - 40 of 44
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:
The Math.SQRT2
property represents the square root of 2, approximately 1.414:
The Math.tan()
function returns the tangent of a number.
The Math.clz32()
function returns the number of leading zero bits in the 32-bit binary representation of a number.
The Math.log10()
function returns the base 10 logarithm of a number, that is
The
Math.log1p()
function returns the natural logarithm (base
e
) of 1 + a number, that is