# Системы счисления и побитовые операции

### Десятичная, Шестнадцатеричная, Двоичная и Восьмеричная системы

Soulver поддерживает базу 2 (двоичную), восьмеричную (основание 8) и шестнадцатеричную (основание 16) системы, с поддержкой различных форматов для преобразования между ними

```
# Конвертеры
256 в hex         | 0x100
99 в двоичном       | 0b1100011
0x9F31 в десятичное  | 40,753
0b1000101 в восьмеричное | 0o105

# Фразы
0b101101 в базе 8 | 0o55
0x2D в базе 2     | 0b101101

# Функции в стиле Python
int(0o55)          | 45
hex(99)            | 0x63
bin(0x73)          | 0b1110011
```

### Побитовые операторы

| Оператор    | Название                        |
| ----------- | ------------------------------- |
| & или AND   | Побитовое И (AND)               |
| \| или OR   | Побитовое ИЛИ (OR)              |
| xor или XOR | Побитовое исключающее ИЛИ (XOR) |
| <<          | Побитовый сдвиг влево           |
| >>          | Побитовый сдвиг вправо          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.soulver.app/ru/spravochnik-po-sintaksisu/bases-and-bitwise.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
