JavaScript - Math.LN10 Property
The JavaScript Math.LN10 property is the natural logarithm of 10. It is approximately 2.303.
Syntax
Math.LN10
Example:
The example below shows the usage of Math.LN10 property.
var txt; txt = "Math.LN10 = " + Math.LN10 + "<br>"; txt = txt + "Math.exp(Math.LN10) = " + Math.exp(Math.LN10) + "<br>"; txt = txt + "Math.LN10 / Math.log(10) = " + Math.LN10 / Math.log(10) + "<br>";
The output (value of txt) after running above script will be:
Math.LN10 = 2.302585092994046 Math.exp(Math.LN10) = 10.000000000000002 Math.LN10 / Math.log(10) = 1
❮ JavaScript - Math Object