← All docs

ceil()

Rounds a number up to the nearest integer.

ceil()

function ceil(float $num): float

Rounds a number up to the nearest integer.

Parameters:

  • $num (float)

Returns: float

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

Internals

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