소스 검색

scMathUtil.roundTo 返回Number,无需转换

MaiXinRong 7 년 전
부모
커밋
965ba9460d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/web/scMathUtil.js

+ 1 - 1
public/web/scMathUtil.js

@@ -86,5 +86,5 @@ Number.prototype.toDecimal = function (ADigit) {
     // var s = scMathUtil.roundTo(this, digit);
     // console.log('Number: ' + this + '   Digit: ' + digit + '    Result: ' + s);
     // return parseFloat(s);
-    return parseFloat(scMathUtil.roundTo(this, digit));
+    return scMathUtil.roundTo(this, digit);
 };