diff --git a/src/Numeral.php b/src/Numeral.php index b7f78bec..3c17b123 100644 --- a/src/Numeral.php +++ b/src/Numeral.php @@ -717,7 +717,7 @@ public function formatNumber($number, $format, $sep = '') $totalLength = floor(log($abs) / log(10)) + 1; - $minimumPrecision = $totalLength % 3; + $minimumPrecision = (int)$totalLength % 3; $minimumPrecision = ($minimumPrecision === 0) ? 3 : $minimumPrecision; if ($intPrecision > 0 && $abs !== 0) {