http://www.w3schools.com/jsref/jsref_obj_math.asp
I hope it will help