# Math Object (JavaScript)

An intrinsic object that provides basic mathematics functionality and constants.

```Math.[{property | method}]
```

## Parameters

property

Required. Name of one of the properties of the Math. object.

method

Required. Name of one of the methods of the Math. object.

## Remarks

The Math object cannot be created using the new operator, and gives an error if you attempt to do so. The scripting engine creates it when the engine is loaded. All of its methods and properties are available to your script at all times.

## Requirements

The Math object was introduced in Internet Explorer before Internet Explorer 6.

## Constants

The following table lists the constants of the Math object.

Constant

Description

The mathematical constant e. This is Euler's number, the base of natural logarithms.

The natural logarithm of 2.

The natural logarithm of 10.

The base-2 logarithm of e.

The base-10 logarithm of e.

Pi. This is the ratio of the circumference of a circle to its diameter.

The square root of 0.5, or, equivalently, one divided by the square root of 2.

The square root of 2.

## Functions

The following table lists the functions of the Math object.

Function

Description

Returns the absolute value of a number.

Returns the arccosine of a number.

Returns the hyperbolic arccosine (or inverse hyperbolic cosine) of a number.

Returns the arcsine of a number.

Returns the arctangent of a number.

Returns the angle (in radians) from the X axis to a point represented by the supplied y and x coordinates.

Returns the smallest integer that is greater than or equal to the supplied numeric expression.

Returns the cosine of a number.

Returns e (the base of natural logarithms) raised to a power.

Returns the greatest integer that is less than or equal to the supplied numeric expression.

Returns the square root of the sum of the squares of the arguments.

Returns the product of two numbers that are treated as 32-bit signed integers.

Returns the natural logarithm of a number.

Returns the greater of two supplied numeric expressions.

Returns the lesser of two supplied numbers.

Returns the value of a base expression raised to a specified power.

Returns a pseudorandom number between 0 and 1.

Returns a specified numeric expression rounded to the nearest integer.

Returns the sine of a number.

Returns the square root of a number.

Returns the tangent of a number.