ES6 - Math-LN2 屬性



它返回 2 的自然對數,大約為 0.693。

語法

Math.LN2 

示例

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

輸出

0.6931471805599453          
廣告
© . All rights reserved.