Fix a bug in input-number component

This commit is contained in:
leonisme 2017-07-25 18:04:46 +08:00
parent c110b728f6
commit 075f6215e4

View file

@ -60,7 +60,7 @@
// return (num1 * m + num2 * m) / m;
// }
m = Math.pow(10, Math.max(sq1, sq2));
return (num1 * m + num2 * m) / m;
return (Math.round(num1 * m) + Math.round(num2 * m)) / m;
}
export default {