JavaScript Tutorial/Math/LOG10E

Материал из Web эксперт
Перейти к: навигация, поиск

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.



<html>
    <body>
    <script language="JavaScript">
    <!--
    function doMath(){
        var result = Math.LN10E;
        document.form1.answer.value = result;
    }
    -->
    </script>
    <form name=form1>
    The Base 10 logarithm of Euler"s constant is:
    <input type="text" name="answer" size=20>
    <input type="button" value="Calculate" onClick="doMath()">
    <br>
    </form>
    </body>
    </html>