We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac0cdd commit 07ebac1Copy full SHA for 07ebac1
app/code/Magento/Directory/Model/Currency.php
@@ -341,12 +341,12 @@ public function formatPrecision(
341
$includeContainer = true,
342
$addBrackets = false
343
) {
344
- if (is_numeric($price)) {
345
- $price = round($price, $precision);
346
- }
347
if (!isset($options['precision'])) {
348
$options['precision'] = $precision;
349
}
+ if (is_numeric($price)) {
+ $price = round($price, $options['precision']);
+ }
350
if ($includeContainer) {
351
return '<span class="price">' . ($addBrackets ? '[' : '') . $this->formatTxt(
352
$price,
0 commit comments