JavaScript LOG2E 属性
最后更新于:2022-03-26 22:03:22
JavaScript LOG2E 属性
JavaScript Math 对象
实例
返回以 2 为底的 e 的对数:
Math.LOG2E;
输出结果:
1.4426950408889634
尝试一下 »
定义和用法
LOG2E 属性就是 log2e,即以 2 为底 e 的对数,其值近似于 1.442695040888963387。
浏览器支持





所有主流浏览器都支持 LOG2E 属性。
语法
技术细节
返回值: |
返回以 2 为底的 e 的对数(约等于 1.414)。 |
JavaScript 版本: |
1.0 |
JavaScript Math 对象