Skip to content

Commit 586e145

Browse files
committed
Merge remote-tracking branch 'origin/AC-9221' into spartans_pr_04122023
2 parents ce673ad + fc48d16 commit 586e145

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ private function formatCurrency(string $price, array $options): string
428428

429429
$this->numberFormatter = $this->getNumberFormatter($options);
430430

431+
$this->numberFormatter->setAttribute(
432+
\NumberFormatter::ROUNDING_MODE,
433+
\NumberFormatter::ROUND_HALFUP
434+
);
435+
431436
$formattedCurrency = $this->numberFormatter->formatCurrency(
432437
$price,
433438
$this->getCode() ?? $this->numberFormatter->getTextAttribute(\NumberFormatter::CURRENCY_CODE)

0 commit comments

Comments
 (0)