diff --git a/src/operands.php b/src/operands.php index 1e3e7b9..4583770 100644 --- a/src/operands.php +++ b/src/operands.php @@ -4,7 +4,7 @@ namespace Major\PluralRules\Operands; -function mod(int|float $number, $divisor): int|float +function mod(int|float $number, int $divisor): float { return $number % $divisor + $number - round($number); }