zhangweicheng 5 năm trước cách đây
mục cha
commit
3dd58e9f82
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)