This commit is contained in:
2021-06-02 14:18:03 +00:00
parent 2d778c87d1
commit d9ca665c2a
2 changed files with 26 additions and 20 deletions

View File

@@ -187,7 +187,7 @@ export default {
}
let wasNegative = number < 0;
if (wasNegative) {
number = Match.abs(number); //make sure it's positive because rounding negative numbers is weird in JS
number = Math.abs(number); //make sure it's positive because rounding negative numbers is weird in JS
}
number = Number(
Math.round(number + "e" + decimalPlaces) + "e-" + decimalPlaces