LOG10E (JavaScript)

Value of the logarithm of e to the base 10.

Defined in

Math (JavaScript)

Syntax

Math.LOG10E

Usage

LOG10E is a constant.

The value of the logarithm of e to the base 10 is approximately 0.4342944819032518.

To get the logarithm to the base 10 of any number n, multiplyMath.log(n) by this constant.

Examples

This button onclick event gets the logarithm of a number to the base 10.
sessionScope.log10 = Math.log(sessionScope.n) * Math.LOG10E