Uploaded March 2010 | Updated November 2026, 2 days ago
Math.PI is pi
Math.E is e
Math.random() is a random number
Math.round(x) rounds x
Math.abs(x) gets the absolute value of x
Math.sin(x) gets the sine of x
Math.cos(x) gets the cosine of x
Math.tan(x) gets the tangent of x
Math.pow(x , y) raises x to the power of y
Math.sqrt(x) gets the squareroot of x
Math.cbrt(x) gets the cuberoot of x
Math.log(x) logs x with a base of e
Math.log10(x) logs x with a base of 10
Math.max(x, y) gets the larger of x and y
Math.min(x, y) gets the smaller of x and y
Math.PI is pi
Math.E is e
Math.random() is a random number
Math.round(x) rounds x
Math.abs(x) gets the absolute value of x
Math.sin(x) gets the sine of x
Math.cos(x) gets the cosine of x
Math.tan(x) gets the tangent of x
Math.pow(x , y) raises x to the power of y
Math.sqrt(x) gets the squareroot of x
Math.cbrt(x) gets the cuberoot of x
Math.log(x) logs x with a base of e
Math.log10(x) logs x with a base of 10
Math.max(x, y) gets the larger of x and y
Math.min(x, y) gets the smaller of x and y










