HH\Lib\Math\int_div

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

This function is available as Math\int_div() in Facebook's www repository.

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

Description

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