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

# SU.Math.sqrt

## SU.Math.sqrt(value)

Berechnet die Quadratwurzel einer Zahl.

#### Parameter

* `value`: `number` – Positiv oder Null (größer oder gleich 0)

#### Rückgabewert

* `number` – Die Quadratwurzel
* `nan` (not a number, [SU.Math.isNan](/s4-lua-api-de/su-library-functions/su.math/su.math.isnan.md)): Fehler bei negativen Werten

#### Beispiel

```lua
local root = SU.Math.sqrt(16)    -- liefert 4.0
```
