ES6 - Math-LOG2E 属性

E 的底数为 2 的对数,约为 1.442。

语法

Math.LOG2E

示例

console.log(Math.LOG2E) // Math.E 的底数为 2 的对数:~1.433       

输出

1.4426950408889634