# DIVIDE

The **DIVIDE** function returns the result of dividing one number by another. It takes a numerator and a denominator as inputs and performs the division operation. This function is commonly used in calculations involving ratios, percentages, averages, and other mathematical operations where one value needs to be divided by another.

### Syntax

```javascript
DIVIDE (Numerator, Denominator, Alternate)
```

### Arguments

Numerator, Denominator - The values to be divided (Required).&#x20;

Alternate - An alternate value is returned when the division results in an error. In case the denominator is null and there is no alternate, it returns the #VALUE! error. This argument is optional.

### Example

```javascript
DIVIDE (COLUMN1, COLUMN2, 0)
```

In the example below, the *DIVIDE* measure is created using the **DIVIDE** function, which returns the result of dividing *MEASURE 1* (numerator) by *MEASURE 2* (denominator).

<figure><img src="/files/hNpxRddIZ57JTRRPhPqN" alt=""><figcaption><p>Applying DIVIDE function</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/formula-syntax/math-functions/divide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
