ES6 - Math-LOG2E 屬性



E 的底數 2 對數,約為 1.442。

語法

Math.LOG2E

示例

console.log(Math.LOG2E) // the base 2 logarithm of Math.E: ~1.433           

輸出

1.4426950408889634             
廣告
© . All rights reserved.