Math (JavaScript)

Represents common mathematical values and functions.

Defined in

Standard (JavaScript)

Fields

Field Description
E (JavaScript) Value of e.
LN10 (JavaScript) Value of the natural logarithm of 10.
LN2 (JavaScript) Value of the natural logarithm of 2.
LOG2E (JavaScript) Value of the logarithm of e to the base 2.
LOG10E (JavaScript) Value of the logarithm of e to the base 10.
PI (JavaScript) Value of pi.
SQRT1_2 (JavaScript) Value of the square root of 1/2.
SQRT2 (JavaScript) Value of the square root of 2.

Usage

The Math class contains no constructors and all references are static.