# Divide

## Overview

![The Divide Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-41b6adda62b049ff9372f04fa487ed5ad69b7c76%2Fdivideupdatedimage.png?alt=media)

**Divide** is a *basic arithmetic operation* **Node**, which divides one number (*dividend*) by a second number (*divisor*) and outputs the result of the operation (*quotient*). This will affect each *component* separately with **Data Types** that are comprised of multiple components (**Vectors**).

This is the equivalent of the division (`÷` or `/`) operation in computer science and mathematics.

[**Scope**](https://docs.incari.com/incari-studio/2023.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Divide Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-15c58fd7739eff6da7f7637b015798fa49be03bb%2Fnode-divide2-attr.png?alt=media)

| Attribute          | Type                                          | Description                                                                                                               |
| ------------------ | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `Data Type`        | **Drop-down**                                 | The type of data that will be plugged into the `Input` **Sockets**.                                                       |
| `Default Dividend` | *Defined in the `Data Type`* ***Attribute***. | The left side of the division operation (the number to be divided), if no value is provided in the `Dividend` **Socket**. |
| `Default Divisor`  | *Defined in the `Data Type`* ***Attribute***. | The right side of the division operation (the number to divide by), if no value is provided in the `Divisor` **Socket**.  |

## Inputs

| Input             | Type                                          | Description                                                           |
| ----------------- | --------------------------------------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                     | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Dividend`        | *Defined in the `Data Type`* ***Attribute***. | The left side of the division operation (the number to be divided).   |
| `Divisor`         | *Defined in the `Data Type`* ***Attribute***. | The right side of the division operation (the number to divide 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. |
| `Quotient`         | *Defined in the `Data Type`* ***Attribute**.* | The result of the division operation.                                                                                                  |
