← All docs

intdiv()

Integer division.

intdiv()

function intdiv(int $num1, int $num2): int

Integer division.

Parameters:

  • $num1 (int)
  • $num2 (int)

Returns: int

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

Internals

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