> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.math/su.math.round.md).

# SU.Math.round

## SU.Math.round(value)

Rundet eine Zahl auf die nächstgelegene ganze Zahl kaufmännisch ab oder auf.

#### Parameter

* `value`: `number` – Die zu rundende Zahl

#### Rückgabewert

* `number` – Die gerundete ganze Zahl

#### Beispiel

```lua
local roundedUp   = SU.Math.round(4.6)    -- liefert 5
local roundedDown = SU.Math.round(4.2)    -- liefert 4
```
