# BitCount

BitCount() 用于查找将数值的等值二进制数中设置为 1 的位数。即该函数用于返回 integer\_number 中的设置位，其中 integer\_number 解释为标记的 32 位整数。

语法：

BitCount(integer\_number)

返回数据类型： 整数

示例和结果：

* BitCount ( 3 )：3 的二进制是 101，因此返回 2
* BitCount ( -1 )：-1 的二进制是 64 个 1，因此返回 64