> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/ko/undefined/bases-and-bitwise.md).

# 진법 및 비트 단위

### 십진수, 16진수, 2진수 및 8진수

Soulver는 베이스 2(2진수), 8진수(베이스 8) 및 16진수(베이스 16)를 지원하며, 이들 간 변환을 위해 다양한 형식을 지원합니다.

```
# 변환기
256을 16진수로         | 0x100
99를 2진수로           | 0b1100011
0x9F31을 십진수로      | 40,753
0b1000101을 8진수로    | 0o105

# 구문
0b101101을 8진수로    | 0o55
0x2D를 2진수로        | 0b101101

# Python 스타일 함수
int(0o55)              | 45
hex(99)                | 0x63
bin(0x73)              | 0b1110011
```

### 비트 단위 연산자

| 연산자        | 이름            |
| ---------- | ------------- |
| & 또는 AND   | 비트 단위 AND     |
| \| 또는 OR   | 비트 단위 OR      |
| xor 또는 XOR | 비트 단위 XOR     |
| <<         | 비트 단위 왼쪽 시프트  |
| >>         | 비트 단위 오른쪽 시프트 |
