mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 11:24:03 +00:00
fix comment grammar
This commit is contained in:
parent
6c5f1feec4
commit
f24ced5445
1 changed files with 3 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue