ES6 - Math-LN10 屬性



10 的自然對數,約為 2.302。

語法

Math.LN2 

示例

console.log(Math.LN10) // the natural logarithm of 10: ~2.303          

輸出

2.302585092994046           
廣告