diff --git a/src/PriceFormatter.php b/src/PriceFormatter.php index 803d147..61ea4bc 100644 --- a/src/PriceFormatter.php +++ b/src/PriceFormatter.php @@ -24,9 +24,10 @@ class PriceFormatter ); if ($currency->trimTrailingDecimalZeros()) { - // Remove trailing zeros from price + // Remove trailing zeros from the formatted string $decimal = rtrim($decimal, '0'); - // If there is no more decimal values, remove the trailing decimal separator as well + + // Once there are no more decimal values, remove the decimal separator as well $decimal = rtrim($decimal, $currency->decimalSeparator()); }