Math.abs();
Math.abs(value);
The Math.abs() function returns the absolute value of a number. That is, it returns x if x is positive or zero, and the negation of x if x is negative.
Math.random();
Math.random();
The Math.random() function returns a floating-point, pseudo-random number in the range 0 to less than 1 (inclusive of 0, but not 1) with approximately uniform distribution over that range.
Math.min();
Math.min(value1, value2);
The static function Math.min() returns the lowest-valued number passed into it, or NaN if any parameter isn’t a number and can’t be converted into one.
Math.max();
Math.max(value1, value2);
The static function Math.max() returns the largest-valued number passed into it, or NaN if any parameter isn’t a number and can’t be converted into one.
Math.round();
Math.round(value);
The Math.round() function returns the value of a number rounded to the nearest integer.
Math.randInt();
Math.randInt(min, max);
The Math.randInt() function returns a Integer, pseudo-random number in the range from the defined min to max with approximately uniform distribution over that range.
Math.range();
Math.range(value);
Math.sign();
Math.sign(value);
The Math.sign() function returns either a positive or negative + / – 1, indicating the sign of a number passed into the argument. If the number passed into Math.sign() is 0, it will return a + / – 0. Note that if the number is positive, an explicit (+) will not be returned.
Math.toDegrees();
Math.toDegrees(value);
Math.toRadians();
Math.toRadians(value);
Math.sin();
Math.sin(value);
The Math.sin() function returns the sine of a number.
Math.asin();
Math.asin(value);
The Math.asin() function returns the arcsine (in radians) of a number.
Math.sinh();
Math.sinh(value);
The Math.sinh() function returns the hyperbolic sine of a number.
Math.asinh();
Math.asinh(value);
The Math.asinh() function returns the hyperbolic arcsine of a number.
Math.cos();
Math.cos(value);
The Math.cos() static function returns the cosine of the specified angle.
Math.acos();
Math.acos(value);
The Math.acos() function returns the arccosine (in radians) of a number.
Math.cosh();
Math.cosh(value);
The Math.cosh() function returns the hyperbolic cosine of a number.
Math.acosh();
Math.acosh(value);
The Math.acosh() function returns the hyperbolic arc-cosine of a number.
Math.tan();
Math.tan(value);
The Math.tan() function returns the tangent of a number.
Math.atan();
Math.atan(value);
The Math.atan() function returns the arctangent (in radians) of a number.
Math.tanh();
Math.tanh(value);
The Math.tanh() function returns the hyperbolic tangent of a number.
Math.atanh();
Math.atanh(value);
The Math.atanh() function returns the hyperbolic arctangent of a number.
Math.log();
Math.log(value);
The Math.log() function returns the natural logarithm (base e) of a number.
Math.log10();
Math.log10(value);
The Math.log10() function returns the base 10 logarithm of a number.
Math.exp();
Math.exp(value);
The Math.exp() function returns e^x, where x is the argument, and e is Euler’s number (also known as Napier’s constant), the base of the natural logarithms.
Math.pow();
Math.pow(value);
The Math.pow() function returns the base to the exponent power, as in base^exponent.
Math.sqr();
Math.sqr(value);
Math.sqrt();
Math.sqrt(value);
The Math.sqrt() function returns the square root of a number.
Math.ceil();
Math.ceil(value);
The Math.ceil() function always rounds a number up to the next largest integer.
Math.floor();
Math.floor(value);
The Math.floor() function returns the largest integer less than or equal to a given number.
Math.PI;
Math.PI;
The Math.PI property represents the ratio of the circumference of a circle to its diameter, approximately 3,14159.
Math.E;
Math.E;
The Math.E property represents Euler’s number, the base of natural logarithms, e, which is approximately 2,718.
Math.SQRT2;
Math.SQRT2;
The Math.SQRT2 property represents the square root of 2, approximately 1,414.
Math.SQRT1_2;
Math.SQRT1_2;
The Math.SQRT1_2 property represents the square root of 1/2 which is approximately 0,707.
Math.LN2;
Math.LN2;
The Math.LN2 property represents the natural logarithm of 2, approximately 0,693.
Math.LN10;
Math.LN10;
The Math.LN10 property represents the natural logarithm of 10, approximately 2,302.
Math.LOG2E;
Math.LOG2E;
The Math.LOG2E property represents the base 2 logarithm of e, approximately 1,442.
Math.LOG10E;
Math.LOG10E;
The Math.LOG10E property represents the base 10 logarithm of e, approximately 0,434.