The Math object is a placeholder for grouping mathematical
constants and functions. It does not define a class of objects as Date
and String do. There is no
constructor, and functions like
) are simply functions, not methods that operate on an
The constant e, the base of the natural logarithm.
The natural logarithm of 10.
The natural logarithm of 2.
The base-10 logarithm of e.
The base-2 logarithm of e.
The constant π.
1 divided by the square root of 2.
The square root of 2.
Returns the absolute value of
Returns the arc cosine of
the return value is between 0 and π radians.
Returns the arc sine of
return value is between -π/2 and π/2 radians.
Returns the arc tangent of
the return value is between -π/2 and π/2 radians.
Returns a value between -π and π radians that specifies
the counterclockwise angle between the positive X-axis and the
y). Note the order of the arguments
to this function.
Returns the nearest integer greater than or equal to
Returns the cosine of the specified value
Returns the constant e raised to the
Returns the nearest integer less than or equal to
Returns the natural logarithm of
Returns the largest of the arguments. Returns ...