# Mod

Modular arithmetic is used when we are only interested in what the remainder will be when we divide one number by another. For these cases there is an operator called the modulo operator (abbreviated as Mod).

<table><thead><tr><th>Expression</th><th>Databox Value</th><th width="105">Result</th><th>Comments</th></tr></thead><tbody><tr><td><code>Mod(12)</code></td><td>38</td><td>2</td><td>Modular Arithmetic returns the remainder when divided by n. e.g. Mod(2) returns 0 for an even number and 1 for an odd number.<br>Mod(12) can be used for Clock Arithmetic</td></tr></tbody></table>


---

# 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.keyfax.biz/product-suite/admin/databox-expressions/numeric-expressions/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.
