|
@@ -27,8 +27,7 @@ function calc(exp, isDeg = false) {
|
|
|
if (res.length === 1 || !isNaN(resNum)) {
|
|
if (res.length === 1 || !isNaN(resNum)) {
|
|
|
stack.push(resNum);
|
|
stack.push(resNum);
|
|
|
} else {
|
|
} else {
|
|
|
- // console.log(resNum, +parser.parse(resNum));
|
|
|
|
|
- stack.push(parser.parse(resNum));
|
|
|
|
|
|
|
+ stack.push(parser.parse(resNum) + '');
|
|
|
}
|
|
}
|
|
|
res = [];
|
|
res = [];
|
|
|
}
|
|
}
|