Math Objects Javascript

PI Object

The function of Math.PI is to give out the first few digits of Pi which is the circumference of a circle.


Rounding Off Object

The function of Math.round is to round off the decimals of a number.

If you want to round off numbers yourself, press the button:

The Rounded Off Number Is:


Power Object

The function of Math.pow is it displays the value of x to the power of y.
var x = 5
var y = 3

If you want to get the power numbers yourself, press the button:

The Powered Number Is:


Square Root Object

The function of Math.sqrt is it displays the square root of x.
var x = 36

If you want to get the square root of a number yourself, press the button:

The Square Root Of The Number Is:


Minimum & Maximum Object

The function of Math.min and Math.max is it gets the minimum and maximum number of an array of numbers.
var x = 0, 150, 5363, 53, 42, 45, -332 -200
var y = 324, 425, 54, 0, 454, 6455, 53

If you want to get the minimum number in an array of numbers yourself, press the button:

The Minimum Number In The Array Is:

If you want to get the minimum number in an array of numbers yourself, press the button:

The Maximum Number In The Array Is: