log2

log2

> 功能

计算数字 number 的以 2 为底的对数。

设置

#### 反馈

#### 例子

log2(1) // 0.0 log2(10) // 3.3219280948873626 log2(16) // 4.0