JavaScript – Math.expm1() Method
The Math.exp() method returns the value of E squared minus 1, where E is Euler’s number and x is the parameter passed to it.
The Math.exp() method returns the value of E squared minus 1, where E is Euler’s number and x is the parameter passed to it.
The Math.floor() method returns a number rounded down to the nearest integer.
The Math.fround() method returns the nearest 32-bit single-precision-float representation of a number.
The Math.LN2 property returns the natural logarithm of 2, which is approximately 0.693.
The Math.LN10 property returns the natural logarithm of 10, which is approximately 2.3025.
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.