Skip to content

Commit 123a8c8

Browse files
committed
AC-13855: Penny rounding error in catalog rule
To fix rounding error in PHP 8.4
1 parent 9336b04 commit 123a8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function round($price)
156156
if (str_contains(PHP_VERSION, '8.4')) {
157157
return round(round((float) $price, 3), 2);
158158
}
159-
return round((string) $price, 2);
159+
return round((float) $price, 2);
160160
}
161161

162162
/**

0 commit comments

Comments
 (0)