Commit 48135c7c authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Table: fix toFixed parameter overflow

parent f0c4c5b5
......@@ -23,7 +23,7 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return parseFloat((prev + curr).toFixed(precision));
return parseFloat((prev + curr).toFixed(Math.min(precision, 20)));
} else {
return prev;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment