The Math object has several properties for mathematics.
The following table describes these properties.
Property | Value(approximately) | Description |
---|---|---|
Math.E | 2.718 | The value of e, the base of the natural logarithms |
Math.LN10 | 2.303 | The natural logarithm of 10 |
Math.LN2 | 0.693 | The natural logarithm of 2 |
Math.LOG2E | 1.443 | The base 2 logarithm of e |
Math.LOG10E | 0.434 | The base 10 logarithm of e |
Math.PI | 3.14159 | The value of PI |
Math.SQRT1_2 | 0.707 | The square root of 0.5 |
Math.SQRT2 | 1.414 | The square root of 2 |