> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemreference/operators/division.md).

# Division /

{% hint style="info" %}
The Division operator **`/`** is used to divide one value by another.&#x20;

The values can be of the following type:

* number
* duration

This function is SQL compatible. For more information about SQL compatibility, see our [documentation](/platform/wemreference/sql-compatibility.md).&#x20;
{% endhint %}

{% hint style="success" %}
Returns a new value that is the result of the division of `value1` by `value2`.

The type of the resulting value is dependent on the types of `value1` and `value2`:

* number / number returns a number
* duration / number returns a duration
* duration / duration returns a number

{% endhint %}

<details>

<summary><mark style="color:blue;"><code>value1</code></mark><code> / </code><mark style="color:blue;"><code>value2</code></mark></summary>

`35 / 7`\
*=> 5*

`'12d' / 24`\
\&#xNAN;*=> 12 hours*

`'1m' / '1s'`\
\&#xNAN;*=> 60*

`10 /`` `<mark style="color:red;">`0`</mark>\
\&#xNAN;*=> unknown*

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.wem.io/platform/wemreference/operators/division.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
