MaiXinRong 6 năm trước cách đây
mục cha
commit
ae24d88c34
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/public/js/zh_calc.js

+ 1 - 1
app/public/js/zh_calc.js

@@ -90,7 +90,7 @@ const ZhCalc = (function () {
      * @param num2 - 除数
      * @returns {*}
      */
-    function div(num1, num2) {
+    function div(num1, num2, digit = 6) {
         if (num2 && !checkZero(num2)) {
             return Decimal.div(num1 ? num1: 0, num2).toDecimalPlaces(digit).toNumber();
         } else {