> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reelevant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Round

> Round a number

## Overview

The `round` transformation rounds a number to a specified number of decimal places using a given rounding mode.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
round(<variable>, mode="round", decimal=0)
```

## Parameters

| Parameter  | Type   | Required | Description                                                  |
| ---------- | ------ | -------- | ------------------------------------------------------------ |
| `variable` | number | Yes      | The number to round                                          |
| `mode`     | string | Yes      | Rounding mode: `"round"`, `"up"` (ceil), or `"down"` (floor) |
| `decimal`  | number | Yes      | Number of decimal places                                     |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
round(<variable>, mode="round", decimal=2)
round(<variable>, mode="up", decimal=0)
round(<variable>, mode="down", decimal=1)
```
