> 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

Returns the remainder after dividing a number by another number.

#### 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="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-6ceb433600bcef7040785cd3c6c25979cbc58f53%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-d5ee973106178f3afe0fa0731a22d6d58c333c6e%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
