August 1999
Intermediate to advanced
1488 pages
72h 53m
English
math.LOG10E
The LOG10E property of the Math object calculates the base 10 logarithm of Euler's constant. The return value is approximately 0.434.
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.
<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 ... |
Read now
Unlock full access