> 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.fmod.md).

# SU.Math.fmod

## SU.Math.fmod(x, y)

Gibt den Rest der **Gleitkomma**division von x / y zurück.

⇒ für **Ganz**zahlen [SU.Math.mod](/s4-lua-api-de/su-library-functions/su.math/su.math.mod.md)

#### Parameter

* `x`: `number` – Der Dividend
* `y`: `number` – Der Divisor

#### Rückgabewert

* `number` – Der Rest der Division (behält das Vorzeichen von `x`)

#### Beispiel

```lua
local remainder = SU.Math.fmod(5.3, 2)    -- liefert 1.3
```
