HH\Lib\Math\int_div

This API is part of the Hack Standard Library, not HHVM itself.

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