> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/master/math/modulo.md).

# Modulo

## Overview

![](/files/-MIxaVLJeGfXvxG3ihf4)

**Modulo** takes two **Numerical Type Inputs**; `a` (*the dividend*) and `b` (*the divisor*) and returns the *remainder* of the *division* of `a` and `b`.

Unlike normal division, this kind of operation, actually considers how many times the divisor fits into the dividend in its entirity (the *quotient*), with the *remainder* being the amount that is left over.

|                |               |          |                 |
| -------------- | ------------- | -------- | --------------- |
| Dividend (`a`) | Divisor (`b`) | Quotient | Remainder (`c`) |
| 10             | 25            | 2        | 5               |
| 5.5            | 1.5           | 3        | 1               |
| 540            | 360           | 1        | 180             |
| 15             | 12            | 1        | 3               |

## Attributes

| Attribute   | Type                                          | Description                                                                    |
| ----------- | --------------------------------------------- | ------------------------------------------------------------------------------ |
| `Data Type` | *Defined in the* `Data Type` ***Attribute**.* | The **Numerical Data Type** of both the dividend and the divisor (`a` and `b`) |

## Inputs

| Input             | Type                                          | Description                                                           |
| ----------------- | --------------------------------------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                     | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `a`               | *Defined in the* `Data Type` ***Attribute**.* | The dividend (number to be divided).                                  |
| `b`               | *Defined in the* `Data Type` ***Attribute**.* | The divisor (amount the dividend should be divided by).               |

## Outputs

| Output             | Type                                          | Description                                                                                                                            |
| ------------------ | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**                                     | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `c`                | *Defined in the* `Data Type` ***Attribute**.* | The remainder of the division operation. (*divisor - dividend \* quotient*).                                                           |

## External Links

* [*Intro to remainders*](https://www.khanacademy.org/math/arithmetic/arith-review-multiply-divide/arith-review-remainders/v/introduction-to-remainders) on Kahn Academy.
* [*What is modular arithmetic?*](https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/what-is-modular-arithmetic) on Kahn Academy.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.incari.com/incari-studio/master/math/modulo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
