JavaScript Math Functions - JavaScripter.net - JavaScript FAQ, quizzes, games, and more
Question: What mathematical functions are supported in JavaScript? Answer: JavaScript supports many arithmetic operations as well as the following math functions (or, more precisely, methods of the Math object): Math.abs(a) // the absolute value of a Math...