ES6 Math.LOG2E

基数为2的对数,约为1.442。

语法

Math.LOG2E

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

输出

1.4426950408889634

基数为E的对数10,约为0.434。语法Math.LOG10E例console.log(Math.LOG10E) // the base 10 logarithm of Math.E: 0.434输出0.43 ...