Math.LOG10E

JavaScript 1.0+, ECMAScript 1.0+, JScript 1.0+ Nav2+, NES2+, IE3+, Opera3+ Syntax

							math.LOG10E

Description

The LOG10E property of the Math object calculates the base 10 logarithm of Euler's constant. The return value is approximately 0.434.

Example

Listing 6.164 shows how the LOG10E property is used. When the user chooses the Calculate button, the doMath function is executed, which calculates the base 10 logarithm of Euler's constant and outputs the result in the text box.

Listing 6.164 Example of the LOG10E Property
 <html> <body> <script language="JavaScript"> <!–– Hide function doMath(){ var result = Math.LN10E; document.form1.answer.value = result; } // End Hide ––> </script> <form name=form1> The Base 10 logarithm of ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.