The Math Object's Properties and Methods Are Described Below:
NN: Netscape, IE: Internet Explorer
PROPERTIES
Syntax: Object.property_name
PropertyDescriptionNNIE EReturns the base of a natural logarithm23LN2Returns the natural logarithm of 223LN10Returns the natural logarithm of 1023LOG2EReturns the base-2 logarithm of E23LOG10EReturns the base-10 logarithm of E23PIReturns PI23SQRT1_2Returns 1 divided by the square root of 223SQRT2Returns the square root of 223
Methods
Syntax: Object.method_name ()
MethodDescriptionNNIEabs (x) Returns the absolute value of x23acos (x) Returns the arccosine of x23asin (x) Returns the arcsine of x23atan (x) Returns the arctangent of x23atan2 (y, x) Returns the angle from the x axis to a point23ceil ( x) Returns the nearest integer greater than or equal to x23cos (x) Returns the cosine of x23exp (x) Returns the value of E raised to the power of x23floor (x) Returns the nearest integer less than or equal to x23log (x) Returns the natural log of x23max (x, y) Returns the number with the highest value of x and y23min (x, y) Returns the number with the lowest value of x and y23pow (x, y) Returns the value of the number x raised to the power of y23random () Returns a random number between 0 and 123round (x) Rounds x to the nearest integer23sin (x) Returns the sine of x23sqrt (x) Returns the square root of x23tan (x) Returns the tangent of x23