# BitCount 스크립트 및 차트 함수

BitCount()는 10진수와 동등한 2진수에서 1로 설정된 비트 수를 반환합니다. 즉, 이 함수는 integer\_number에서 설정된 비트 수를 반환하며, 여기서 integer\_number는 부호 있는 32비트 정수로 해석됩니다.

구문:

BitCount(integer\_number)

반환 데이터 유형: 정수

예 및 결과:

예 및 결과

| 예 | 결과 |
| --- | --- |
| `BitCount<br>( 3 )` | 3은 이진수 11이므로 2를 반환합니다. |
| `BitCount<br>( -1 )` | -1은 이진수로 1이 64개이므로 이는 64를 반환합니다. |