> For the complete documentation index, see [llms.txt](https://docs.augelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.augelab.com/function-blocks/blocks-reference/data-logic/mathmetical-operations/divide.md).

# Divide

This function block performs division across multiple numeric inputs. You can choose how many inputs to provide and the block will compute a single numeric result based on the connected values.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

* `Number` (multiple) — Numeric inputs to be used in the division. The block accepts between 2 and 20 numeric inputs, selectable via the control. Disconnected inputs are ignored.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

* `Number` — Single numeric result of the division operation.

## 🕹️ Controls <a href="#controls" id="controls"></a>

* `Input size` — Dropdown to set how many numeric input sockets the block exposes (range: 2–20).\
  Change this to add or remove input sockets interactively.

## 🎯 Features <a href="#features" id="features"></a>

* Dynamic input count — Expand or shrink the number of numeric inputs without replacing the block.
* Single consolidated output — Returns the computed numeric value on one `Number` output.
* Graceful handling of missing inputs — Inputs that are not connected are ignored so the block continues to run.

## ⚙️ How it runs <a href="#running-mechanism" id="running-mechanism"></a>

When evaluated, the block reads the available numeric inputs (up to the selected input count), combines them according to the division operation, and writes the result to the single `Number` output. If some inputs are not connected, the block uses the connected values only.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. Set the number of inputs using the `Input size` dropdown (default is 2).
2. Provide numeric values by connecting `Number` outputs from other blocks or by using `Number Input` blocks.
3. Read the final numeric result from the block's `Number` output.
4. If you need to change the number of inputs later, adjust the `Input size` control — sockets will be added or removed automatically.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* Combine with `Number Input` to feed manual numeric values during testing.
* Use `Round` or `Absolute` after this block to format or normalize the result for display or logging.
* Feed the output into `Scope` to visualize the numeric result over time.
* Use with `CSV Export` or `Image Logger` workflows when you want to record numeric results alongside images or other data.
* For dynamic ranges or repeated calculations, use together with `Counter` or `Number Range` to generate sequences of inputs.

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

* No result shown: Verify at least the minimum number of inputs are selected and that at least one `Number` input is connected.
* Unexpected result: Check connected sources for valid numeric values, and consider adding `Round` if you need a specific decimal precision.
