---
title: DIVIDED_BY
url: https://www.tines.com/docs/formulas/functions/divided-by/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# DIVIDED_BY

*[View on tines.com](https://www.tines.com/docs/formulas/functions/divided-by/)*

Divides a number by the specified number.

**Categories:** Numbers

## Syntax

```
DIVIDED_BY(number, denominator)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": 16
  }
}
```

Formula:

```
DIVIDED_BY(my_action.message, 4)
```

Output:

```json
4
```

### Example 2: If you divide by a whole number, the result is rounded down to a whole number:

Input:

```json
{
  "my_action": {
    "message": 5
  }
}
```

Formula:

```
DIVIDED_BY(my_action.message, 3)
```

Output:

```json
1
```

### Example 3: If you divide by a number with decimal places, the result will have decimal places:

Input:

```json
{
  "my_action": {
    "message": 5
  }
}
```

Formula:

```
DIVIDED_BY(my_action.message, 3.0)
```

Output:

```json
1.666666666666667
```

### Example 4: You can multiply the denominator by 1.0 to force the result to have decimal places:

Input:

```json
{
  "my_action": {
    "message": 3
  }
}
```

Formula:

```
DIVIDED_BY(5, my_action.message * 1.0)
```

Output:

```json
1.666666666666667
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "value1": "16",
          "value2": "5",
          "value3": "5",
          "value4": "3"
        }
      },
      "position": {
        "x": 1635,
        "y": 2355
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "DIVIDED_BY",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "value1": "=DIVIDED_BY(my_action.value1, 4)",
          "value2": "=DIVIDED_BY(my_action.value2, 3)",
          "value3": "=DIVIDED_BY(my_action.value3, 3.0)",
          "value4": "=DIVIDED_BY(5, my_action.value4 * 1.0)"
        }
      },
      "position": {
        "x": 1635,
        "y": 2430
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
