|
The Math object is a built-in object that provides basic mathematics functionality and constants.
Determines the absolute value of its numeric argument. | |
Computes the arccosine of its numeric argument. | |
Computes the arcsine of its numeric argument. | |
Computes the arctangent of its numeric argument. | |
Returns the angle (in radians) from the X axis to a point. | |
Determines the smallest integer greater than or equal to its numeric argument. | |
Computes the cosine of its numeric argument. | |
Computes e to the power of the numeric argument. | |
Determines the greatest integer that is less than or equal to its numeric argument. | |
Computes the natural logarithm of its numeric argument. | |
Returns the greater of two numeric expressions. | |
Returns the lesser of two numeric expressions. | |
Returns the value of a base expression taken to a specified power. | |
Returns a pseudo-random number. | |
Rounds the supplied numeric expression to the nearest integer. | |
Returns the sin of its numeric argument. | |
Returns the square root of a number. | |
Returns the tangent of its numeric argument. |
Euler's constant. | |
The natural logarithm of 2. | |
The natural logarithm of 10. | |
The base 2 logarithm of e. | |
The base 10 logarithm of e. | |
The ratio of the circumference of a circle to its diameter. | |
The square root of 0.5, or 1 divided by the square root of 2. | |
The square root of 2. |
Math.[{property | method}]
property
Name of Math object property.
method
Name of Math object method.
The Math object cannot be created using the new operator, and gives an error if you attempt to do so. It is created by the scripting engine when the engine is loaded. All of its methods and properties are available to your script at all times.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.