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

# SU.Math.isInf

## SU.Math.isInf(value)

Überprüft, ob eine Zahl positiv oder negativ unendlich (`inf` oder `-inf`) ist.

#### Parameter

* `value`: `number` – Die zu prüfende Zahl

#### Rückgabewert

* `number` – `1` wenn die Zahl unendlich ist (`inf` oder `-inf`), sonst `0`

#### Beispiel

```lua
local checkInf = SU.Math.isInf(1 / 0)    -- liefert 1
local checkNum = SU.Math.isInf(42)       -- liefert 0
```
