|
@@ -1518,7 +1518,7 @@ $(document).ready(() => {
|
|
|
const [valid, msg] = this._checkExprValid(expr);
|
|
|
if (!valid) return [valid, msg];
|
|
|
data.expr = expr;
|
|
|
- data.quantity = ZhCalc.calcExpr.calcExprStrRpn(expr);
|
|
|
+ data.quantity = ZhCalc.calcExpr.calcExprStrRpn(expr.replace('%', '/100'));
|
|
|
// const ce = new CalcEvalMin();
|
|
|
// data.quantity = ce.eval(expr);
|
|
|
// console.log(data.quantity);
|