zhangweicheng 5 anni fa
parent
commit
3dd58e9f82
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      public/web/scMathUtil.js

+ 1 - 0
public/web/scMathUtil.js

@@ -173,6 +173,7 @@ let scMathUtil = {
     roundForObj:function(obj,decimal){
         let me = this;
         let value;
+        let n = Math.pow(10,decimal);
         if(me.isNumber(obj)){
           value = Math.round(obj * n) / n;
           //value = me.roundTo(obj,-decimal)