> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/fr/reference-de-syntaxe/general/number-rounding.md).

# Arrondi

Spécifiez le nombre de décimales auquel arrondir un résultat. Cela remplacera les paramètres de précision par défaut de la ligne.

```
# Arrondir à un nombre de décimales spécifique
1/3 à 2 dp                     | 0.33
π à 5 décimales               | 3.14159

# Arrondir à la hausse et à la baisse
5.5 arrondi                     | 6
5.5 arrondi à la baisse        | 5
5.5 arrondi à la hausse        | 6

# Arrondir au multiple de x le plus proche
37 au multiple de 10 le plus proche | 40
$490 arrondi au multiple de cent le plus proche | $500
2,100 au multiple de mille le plus proche | 2,000

# Arrondir à la hausse et à la baisse au multiple de x le plus proche
21 arrondi à la hausse au multiple de 5 le plus proche | 25
17 arrondi à la baisse au multiple de 3 le plus proche | 15
```

Ou utilisez l'une des fonctions suivantes :

| Fonction | Nom            | Comportement                                           |
| -------- | -------------- | ------------------------------------------------------ |
| round()  | Arrondi entier | Arrondit un nombre au nombre entier le plus proche     |
| ceil()   | Plafond        | Arrondit un nombre à l'entier supérieur le plus proche |
| floor()  | Plancher       | Arrondit un nombre à l'entier inférieur le plus proche |


---

# 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://documentation.soulver.app/fr/reference-de-syntaxe/general/number-rounding.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.
