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

# Divide

> Divide two numbers with decimal or integer division.

The **Divide** action divides a dividend by a nonzero divisor. It can return a
decimal quotient or a whole-number quotient with a remainder.

## Inputs

| Input                     | Type    | Required | Description                                                    |
| ------------------------- | ------- | -------- | -------------------------------------------------------------- |
| **Dividend**              | Number  | Yes      | The value being divided.                                       |
| **Divisor**               | Number  | Yes      | The nonzero value to divide by.                                |
| **Use Integer Division?** | Boolean | No       | Returns a floored quotient and remainder. Defaults to `false`. |

## Outputs

| Output        | Type   | When shown             | Description                      |
| ------------- | ------ | ---------------------- | -------------------------------- |
| **Quotient**  | Number | Always                 | The result of the division.      |
| **Remainder** | Number | Integer division is on | The remainder from the division. |

<Tabs>
  <Tab title="Decimal division">
    With **Dividend** set to `17` and **Divisor** set to `5`, **Quotient** is
    `3.4`.
  </Tab>

  <Tab title="Integer division">
    With the same inputs, **Quotient** is `3` and **Remainder** is `2`.
    The quotient is rounded down with `floor`, so negative inputs can differ
    from truncation toward zero. For example, `-17 ÷ 5` produces a quotient of
    `-4` and a remainder of `-2`.
  </Tab>
</Tabs>

<Warning>Division by zero is rejected before the calculation runs.</Warning>
