> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/mathematical-functions/mod.md).

# MOD

#### Syntax

**MOD**(*number;* *divisor*)

1. *number* - the number from which the modulo remainder should be returned - ***Value type**: number*
2. *divisor* - the number to divide - ***Value type**: number*

#### Remarks

1. If *divisor* is 0, the function returns !DIV0.
2. *number* and *divisor* can be negative and/or floating point numbers as well. Then the standard modulo logic is applied.

#### Examples

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

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