# Остаток от деления (mod)

## mod

Функция `mod` вычисляет **остаток от деления** первого аргумента на второй.

Формат записи:

`[mod]делимое|делитель[/mod]`

Пример:

`[mod]10|3[/mod]` &#x20;

Результат:

`1`

<figure><img src="/files/nTXtLR7eI1b311kA2zPx" alt=""><figcaption></figcaption></figure>

***

#### Аргументы

Функция принимает **2 аргумента**, разделённых символом `|`:

1. **Делимое (обязательный)**
2. **Делитель (обязательный)**

{% hint style="warning" %}
Делитель не должен быть равен нулю.\
\[mod]10|0\[/mod] приведёт к ошибке деления на ноль.
{% endhint %}

***

#### Особенности работы

* Если передан не массив - результатом вернется исходный текст записи функции

Если возникли вопросы или трудности - смело обращайся в техподдержку. \
Рады каждому, поможем с любым вопросом и решим любую проблему 🤗

{% content-ref url="/pages/-MasAPNcg291uNezFqb4" %}
[Как задать вопрос в поддержку?](/kak-zadat-vopros-v-podderzhku.md)
{% endcontent-ref %}


---

# 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.leadconverter.su/funkcii/ostatok-ot-deleniya-mod.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.
