|
|
@@ -9,9 +9,6 @@
|
|
|
*/
|
|
|
|
|
|
;
|
|
|
-math.import({
|
|
|
- if: function(con, a, b) { return con ? a : b; },
|
|
|
-});
|
|
|
const zhBaseCalc = (function () {
|
|
|
const zeroPrecision = 12, mulPrecision = 12, divPrecision = 12;
|
|
|
|
|
|
@@ -294,6 +291,9 @@ const ZhCalc = (function () {
|
|
|
math && math.config({
|
|
|
number: 'BigNumber',
|
|
|
});
|
|
|
+ math.import({
|
|
|
+ if: function(con, a, b) { return con ? a : b; },
|
|
|
+ });
|
|
|
mathConfig = true;
|
|
|
}
|
|
|
}
|