Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Round fractions down
<?php floor(int|float $num): float
<?php     public function sliding($size = 2, $step = 1)

    {

        $chunks = floor(($this->count() - $size) / $step) + 1;



        return static::times($chunks, fn ($number) => $this->slice(($number - 1) * $step, $size));

    }
<?php         $groups = new static;



        $groupSize = floor($this->count() / $numberOfGroups);



        $remain = $this->count() % $numberOfGroups;
<?php                 return sprintf('%s'.end($units), static::summarize($number / 1e15, $precision, $maxPrecision, $units));

        }



        $numberExponent = floor(log10($number));

        $displayExponent = $numberExponent - ($numberExponent % 3);

        $number /= pow(10, $displayExponent);
<?php         }



        $short = max(0, $length - mb_strlen($value));

        $shortLeft = floor($short / 2);

        $shortRight = ceil($short / 2);



        return mb_substr(str_repeat($pad, $shortLeft), 0, $shortLeft).