HH\Lib\Math\floor

Requires the Hack Standard Library to be installed.
Facebook Engineer?

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

Returns the largest integer value less than or equal to $value

namespace HH\Lib\Math;

function floor(
  num $value,
): float;
  • To find the smallest integer value greater than or equal to $value, see Math\ceil().
  • To find the largest integer value less than or equal to a ratio, see Math\int_div().

Parameters

  • num $value

Returns

  • float