1Console.log (Math.Abs (123));//Absolute Value2 3Console.log (Math.ceil (123.3));//Rounding up4 5Console.log (Math.floor (123));//Rounding Down6 7Console.log (Math.max (x, y));//highest value in X, y8 9Console.log (Math.min (123));//lowest value in x, yTen OneConsole.log (Math.pow (x, y));//y power of x A -Console.log (Math.random ());//random number of 0~1 - theConsole.log (MATH.SQRT (x));//the square root of a number - -Console.log (Math.Round (x));//number rounded to the nearest integer - +Console.log (Math.acos (x));//the inverse cosine value of the returned number. - +Console.log (Math.asin (x));//returns the inverse chord value of the number. A atConsole.log (Math.sin (x));//returns the sine of a number. - -Console.log (Math.tan (x));//returns the tangent of a corner. - -Console.log (Math.tosource (x));//returns the source code for the object. - inConsole.log (Math.log (x));//returns the natural logarithm of the number (bottom is e).
JavaScript Math Object Methods