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 c874e08 commit a311ec3Copy full SHA for a311ec3
lib/internal/Magento/Framework/Locale/LocaleFormatter.php
@@ -51,7 +51,7 @@ public function getLocaleJs(): string
51
*/
52
public function formatNumber($number)
53
{
54
- if (!is_float($number) || !is_int($number)) {
+ if (!is_float($number) && !is_int($number)) {
55
$number = (int) $number;
56
}
57
0 commit comments