HH\Lib\Math\int_div

Requires the Hack Standard Library to be installed.

Returns the result of integer division of $numerator by $denominator

namespace HH\Lib\Math;

function int_div(
  int $numerator,
  int $denominator,
): int;

To round a single value, see Math\floor().

Parameters

  • int $numerator
  • int $denominator