# Форматирование длинных чисел

Допустим у Вас есть Вопрос или Цепочка, которая показывает баланс пользователя, и этот баланс — большое число.

Базовый вариант выглядит так:

![](/files/-M51SacBgXOCzQShz6oA)

![](/files/-M51QklFrlcu37gZ0DXI)

Но в таком формате длинные числа сложно читать человеку.

Вот несколько вариантов, которые позволяет реализовать SQ. Выбирайте тот, который больше понравится Вам :)

![](/files/-M51SRZR4dx78BO_Cw9q)

![](/files/-M51W24f5EjczuplRdNH)

{% hint style="info" %}
Обратите внимание, что переменная **%баланс%** должна иметь тип **Число**. Тип переменной можно сменить в разделе **Переменные**.
{% endhint %}

Код примеров:

```python
{{ %баланс% | pretty }}
{{ %баланс% | pretty('.') }}
{{ %баланс% | pretty(',') }}
{{ %баланс% | pretty('\'') }}
```


---

# 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://docs.smartbot-vk.ru/smartquery/recipes/formatirovanie-dlinnykh-chisel.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.
