Math Function of JavaScript
- Math.random()
This function returns a random floating point number between 0 and 1 ,but not 1.This function generate number which you can’t imagine . It will not generate a whole number.
2.Math.pow()
This method take two arguments as a input and it will return the value of the first argument raised to the power of the second argument
3.Math .round()
this function will return rounded to the value of nearest integer .
4.Math.ceil()
This method will return round a number to next largest integer .
5.Math.floor()
This method returns the largest integer that is less than or equal to the arguments.
6.Math.min()
This method will return the smallest value among the arguments .
7.Math.max()
This method will return the largest value of among the arguments.
8.Math.abs()
This Method will return the absolute or exact value of number .
9.Math.trunc()
This method returns the integer part of arguments and remove the fractional part .
10.Math.sqrt()
This method return the square root of arguments.