Javascript Math Object Properties

Introduction

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.LN102.303The natural logarithm of 10
Math.LN20.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.SQRT21.414 The square root of 2



PreviousNext

Related