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 6299405 commit b0cd9b7Copy full SHA for b0cd9b7
app/code/Magento/Catalog/view/base/web/js/price-utils.js
@@ -60,7 +60,7 @@ define([
60
pattern = pattern.indexOf('{sign}') < 0 ? s + pattern : pattern.replace('{sign}', s);
61
62
// we're avoiding the usage of to fixed, and using round instead with the e representation to address
63
- // numbers like 1.005 = 1.01. Using ToFixed to only provide trailig zeroes in case we have a whole number
+ // numbers like 1.005 = 1.01. Using ToFixed to only provide trailing zeroes in case we have a whole number
64
i = parseInt(
65
amount = Number(Math.round(Math.abs(+amount || 0) + 'e+' + precision) + ('e-' + precision)),
66
10
0 commit comments