Math class

Math Object Properties

Math.E
The value of e, the base of the natural logarithms
Math.LN10
The natural logarithm of 10
Math.LN2
The natural logarithm of 2
Math.LOG2E
The base 2 logarithm of e
Math.LOG10E
The base 10 logarithm of e
Math.PI
The value of pMath.SQRT1_2 The square root of 1/2
Math.SQRT2
The square root of 2

Math Object Methods

Math.abs(num)
Returns the absolute value of (num)
Math.acos(x)
Returns the arc cosine of x
Math.asin(x)
Returns the arc sine of x
Math.atan(x)
Returns the arc tangent of x
Math.atan2(y, x)
Returns the arc tangent of y/x
Math.ceil()
the ceiling function.
Math.cos(x)
Returns the cosine of x
Math.exp(num)
Returns Math.E raised to the power of (num)
Math.floor()
the floor function.
Math.log(num)
Returns the natural logarithm of (num)
Math.max
Returns the maximun value in the list
Math.min
Returns the minimun value in the list
Math.pow(num,power)
Returns num raised to the power of power
Math.random()
returns a random number between the 0 and the 1, not including either 0 or 1.
Math.round()
a round function.
Math.sin(x)
Returns the sine of x
Math.sqrt(num)
Returns the square root of (num)
Math.tan(x)
Returns the tangent of x
Home 
  JavaScript Book 
    JavaScript Reference  

JavaScript Reference:
  1. Array class
  2. Date class
  3. Math class
  4. Number class
  5. String class
  6. Document
  7. History
  8. The HTMLElement Members
  9. Window
  10. Screen
  11. Navigator
  12. Location
  13. html tag and its cooresponding JavaScript class