← All docs

is_infinite()

Checks whether a float is infinite.

is_infinite()

function is_infinite(float $num): bool

Checks whether a float is infinite.

Parameters:

  • $num (float)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how is_infinite is implemented in the compiler, see the internals page.