MaiXinRong %!s(int64=6) %!d(string=hai) anos
pai
achega
ae24d88c34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {