diff --git a/calculator/calculator.app.js b/calculator/calculator.app.js index 81b19bc..78f4b2d 100644 --- a/calculator/calculator.app.js +++ b/calculator/calculator.app.js @@ -170,7 +170,7 @@ function getIntWithPrecision(x) { var xRadix = xStr.indexOf('.'); var xPrecision = xRadix === -1 ? 0 : xStr.length - xRadix - 1; return { - num: Number(xStr.replace('.', '')), + num: parseInt(xStr.replace('.', ''), 10), p: xPrecision }; }