Math

Math methods and properties.

Description

Math is a built-in object that has methods for performing mathematical operations.

Properties

Property Description

Get the Euler’s number mathematical constant (℮).

String value representing infinity.

Value representing Not-a-Number.

Get the mathematical constant pi (π).

Static methods

Method Description

Get the absolute value of a Number.

Get the inverse cosine in radians of a Number.

Get the inverse sine in radians of a Number.

Get the inverse tangent in radians of a Number.

Round up a Number.

Get the cosine of a Number in radians.

Get the hyperbolic cosine of a Number.

Convert radians to degrees.

Get the value of ℮ raised to the power of a Number.

Round down a Number.

Get the hypotenuse of a right triangle.

Get the natural logarithm, base e, of a Number.

Get the base 10 logarithm of a Number.

Get the larger of two Numbers.

Get the arithmetic mean of an Array or Set of Numbers.

Get the smaller of the input parameter Numbers.

Get the value of a base raised to a power.

Convert the value of a Number in degrees to radians.

Get the value of a Number rounded to the nearest integer.

Get the sign of a Number.

Get the sine of a Number in radians.

Get the hyperbolic sine of a Number.

Get the square root of a Number.

Get the sum of an Array or Set of Numbers.

Get the tangent of a Number in radians.

Get the hyperbolic tangent of a Number.

Truncate a Number to a given precision.

\