فهرست منبع

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);
 };