Like any other object Math has methods and properties. The properties are fairly obscure but do include π. Math methods are used to manipulate numbers:
squareRoot=Math.sqrt(4);
That will put the square root of 4 into the variable squareRoot.
Other methods can round numbers (Math.round), remove the numbers after the decimal point (Math.floor) or create random numbers(Math.random). If you are using an editor with good auto-complete or hint functions (or a search engine) you will find there are many more.




