> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MOD

> The MOD function returns the remainder from dividing one number by another. It works across multiple YiDA scenarios, including Form, workflow design, and integration & automation.

The **MOD** function returns the remainder from dividing one number by another.

## Supported Scenarios

The MOD function is supported in the following YiDA scenarios.

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (associated action)
* Integration & automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
MOD(number,divisor)
```

## Attributes

| Attribute | Required | Description                |
| --------- | -------- | -------------------------- |
| number    | Yes      | Number type. The dividend. |
| divisor   | No       | Number type. The divisor.  |

## Return Value

| Return type | Description                    |
| ----------- | ------------------------------ |
| Numerical   | The remainder of the dividend. |

## Example

Use `MOD()` to calculate the remainder of `17` divided by `5`.

## Result

Returns the remainder from dividing the values of two Number components.
