Skip to content

Commit

Permalink
Merge pull request ruanyf#543 from m4jing/patch-1
Browse files Browse the repository at this point in the history
Fixed minor typo and provider preciser translation
  • Loading branch information
ruanyf authored Nov 11, 2017
2 parents 5adf73b + 9b67b9b commit fc5e994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ Math.clz32(0b00100000000000000000000000000000) // 2

上面代码中,0的二进制形式全为0,所以有32个前导0;1的二进制形式是`0b1`,只占1位,所以32位之中有31个前导0;1000的二进制形式是`0b1111101000`,一共有10位,所以32位之中有22个前导0。

`clz32`这个函数名就来自”count leading zero bits in 32-bit binary representations of a number“(计算32位整数的前导0)的缩写。
`clz32`这个函数名就来自”count leading zero bits in 32-bit binary representation of a number“(计算一个数的32位二进制形式的前导0的个数)的缩写。

左移运算符(`<<`)与`Math.clz32`方法直接相关。

Expand Down

0 comments on commit fc5e994

Please sign in to comment.