> For the complete documentation index, see [llms.txt](https://math-5.gitbook.io/math/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://math-5.gitbook.io/math/reference/mathematical-operations/round.md).

# round

## Rounds a number

```cpp
round(x);
```

will return the number x rounded to nearest integer. There's no custom return\_type, as the function always returns an integer. Example:

```cpp
round(5.3); //5
round(-2.4); //-2
round(0.6); //1
```
