---
title: ROUND
url: https://www.tines.com/docs/formulas/functions/round/
kind: formula-function
---

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

# ROUND

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

Rounds an input number to the nearest whole number or, if precision is specified, to that number of decimal places.

**Categories:** Numbers

## Syntax

```
ROUND(number, [precision])
```

## Examples

### Example 1

Input:

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

Formula:

```
ROUND(my_action.message)
```

Output:

```json
3
```

### Example 2

Input:

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

Formula:

```
ROUND(my_action.message)
```

Output:

```json
7
```

### Example 3

Input:

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

Formula:

```
ROUND(my_action.message, 2)
```

Output:

```json
2435.14
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "4",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "down": 3.3,
          "up": 6.6,
          "limited": 2435.135433
        }
      },
      "position": {
        "x": 1470,
        "y": -3495
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "ROUND",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "round_down": "=ROUND(my_action.down)",
          "round_up": "=ROUND(my_action.up)",
          "round_limited": "=ROUND(my_action.limited, 2)"
        }
      },
      "position": {
        "x": 1470,
        "y": -3390
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
