> ## 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

> Arrondir un nombre

## Présentation

La transformation `round` arrondit un nombre à un nombre spécifié de décimales selon un mode d'arrondi donné.

## Syntaxe

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

## Paramètres

| Paramètre  | Type   | Requis | Description                                                                            |
| ---------- | ------ | ------ | -------------------------------------------------------------------------------------- |
| `variable` | number | Oui    | Le nombre à arrondir                                                                   |
| `mode`     | string | Oui    | Mode d'arrondi : `"round"`, `"up"` (arrondi supérieur) ou `"down"` (arrondi inférieur) |
| `decimal`  | number | Oui    | Nombre de décimales                                                                    |

## Exemples

```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)
```
