zhangweicheng 5 年 前
コミット
3dd58e9f82
1 ファイル変更1 行追加0 行削除
  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)