The Math Object
The Math object has several properties that represent mathematical constants and methods.
These are used to carry out a number of useful operations.
All the properties and methods of the Math object are immutable and unable to be changed.
The Math object has eight properties that represent a mix of commonly used math constants.
Note that they are all named in capital letters, which is a convention for constant values:
> Math.PI // The ratio of the cirumference and diameter of
> Math.SQRT2 // The square root of 2
> Math.SQRT1_2 // The reciprocal of the square root of 2
> Math.E // Euler's constant
> Math.LN2 // The natural logarithm of 2
> Math.LN10 // The natural logarithm of 10
> Math.LOG2E // Log base 2 of Euler's constant
> Math.LOG10E // Log base 10 of Euler's constant
Search WWH ::