JavaScript – Math.log() Method
The Math.log() method returns the natural logarithm (base E) of a number.
The Math.log() method returns the natural logarithm (base E) of a number.
The Math.LOG10E property returns the base-10 logarithm of E (Euler’s Number), which is approximately 0.434.
The Math.log1p() method returns the natural logarithm (base E) of 1 + a number.
The Math.LOG2E property returns the base-2 logarithm of E (Euler’s Number), which is approximately 1.442.
The Math.max() method returns the number with the highest value from one or more numbers.
The Math.min() method returns the number with the lowest value from one or more numbers.
The Math.PI property returns PI (the ratio of a circle’s area to the square of its radius, approximately 3.14).
The Math.pow() method returns the value of x to the power of y (e.g., xy).
The Math.random() method returns a random number from 0 (inclusive) up to but not including 1 (exclusive).
The Math.round() method rounds a number to the nearest integer. For example, 1.49 will be rounded down to 1, while 1.5 will be rounded up to 2.
The Math.sign() method returns whether a number is negative, positive or zero.
The Math.sin() method returns the sine of a number (entered in radians). The returned number will be between -1 and 1.
The Math.SQRT1_2 property returns the square root of 1/2, which is approximately 0.707.
The Math.SQRT2 property returns the square root of 2, which is approximately 1.414.