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.
2 parents 3085bda + 657c732 commit 2535b73Copy full SHA for 2535b73
lib/web/mage/validation/validation.js
@@ -25,7 +25,7 @@
25
var val = $(e).val();
26
if (val && val.length > 0) {
27
result = true;
28
- var valInt = parseInt(val, 10) || 0;
+ var valInt = parseFloat(val) || 0;
29
if (valInt >= 0) {
30
total += valInt;
31
} else {
0 commit comments