Javascript Reference
Grammar > Math
javascript Math cos( )
Returns the cosine of the number passed as a parameter.
javascript Math exp( )
Returns the value of Euler's constant to the power of the number passed as a parameter.
javascript Math floor( )
Returns the next lower integer that is less than or equal to the number passed as a parameter.
javascript Math log( )
Returns the natural logarithm (base e) of the number passed as a parameter.
javascript Math max( )
Returns the greater value of the two parameters.
javascript Math min( )
Returns the lesser value of the two parameters.
javascript Math pow( )
Returns the value of the first parameter raised to the power of the second parameter.
javascript Math random( )
Returns a pseudo-random number between 0 and 1. To calculate a pseudo-random integer between zero and another maximum value, use the formula:
javascript Math round( )
Returns an integer that follows rounding rules. If the value of the passed parameter is greater than or equal to x.5, the returned value is x + 1; oth
javascript Math sin( )
Returns the sine (in radians) of the number passed as a parameter.
javascript Math sqrt( )
Returns the square root of the number passed as a parameter.
javascript Math tan( )
Returns the tangent (in radians) of the number passed as a parameter.
< 16-27 / 27

Powered by Linode.