JavaScript LN10 屬性
定義和用法
LN10 屬性就是 loge10,即 10 的自然對數(shù),其值近似于 2.3025850929940459011。
語法
Math.LN10
實例
返回 10 的自然對數(shù):
<script type="text/javascript">
document.write("LN10: " + Math.LN10
);
</script>
輸出:
LN10: 2.302585092994046
LN10 屬性就是 loge10,即 10 的自然對數(shù),其值近似于 2.3025850929940459011。
Math.LN10
返回 10 的自然對數(shù):
<script type="text/javascript">
document.write("LN10: " + Math.LN10
);
</script>
輸出:
LN10: 2.302585092994046