diff --git a/src/Numeral.php b/src/Numeral.php index 8a94b72e..b8f8d395 100644 --- a/src/Numeral.php +++ b/src/Numeral.php @@ -193,7 +193,7 @@ protected function toFixed($number, $decimalPlaces, $optionalDigits = 0) // Handle the case where there are more decimal places // than are desired. - if ($currentDecimalLength > $decimalPlaces) { + if ($currentDecimalLength >= $decimalPlaces) { $roundedValue = round($number, $decimalPlaces); return $this->addPaddingToNumber($roundedValue, $decimalPlaces, $optionalDigits); } @@ -1002,4 +1002,4 @@ public function unformat($string) } } -} \ No newline at end of file +}