# div

## Description

Division of two numbers. The output will return the quotient of the two values.

## Input / Parameter

| Name    | Description                                                                                                        | Input Type | Default | Options     | Required |
| ------- | ------------------------------------------------------------------------------------------------------------------ | ---------- | ------- | ----------- | -------- |
| value1  | The dividend, or the number to be divided.                                                                         | Number     | -       | -           | Yes      |
| value2  | The divisor, or the number to divide the first value by.                                                           | Number     | -       | -           | Yes      |
| integer | Decide whether to return the output as an integer (quotient rounded off to the nearest whole number) or a decimal. | Boolean    | false   | true, false | No       |

## Output

| Description           | Output Type |
| --------------------- | ----------- |
| Returns the quotient. | Number      |

## Callback

N/A

## Video

Coming Soon.

## Example

1. Drag the `div` function into the event flow.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-0558b2381a61e561f6b021c5542ef166b7015de1%2Fdiv-step-1.png?alt=media)

| Values                                                                                                                                                                                                   | Expected result |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-799c802e26f05d903f3d57c26b1853925f93fa42%2Fdiv-step-2.png?alt=media) | 3               |
| ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-6523f6518f14602aa0bd715b082905fdfcf01cca%2Fdiv-step-3.png?alt=media) | 1.5             |
| ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-8b3d124ac3cf3220b5d0674f5e43675838dff4bf%2Fdiv-step-4.png?alt=media) | 1               |

## Links
