fix: repaired number ops

This commit is contained in:
Mike 2023-10-14 07:51:26 -04:00
parent c3e9ec2701
commit 56e3af699c

View file

@ -188,7 +188,7 @@ function negateNumber(){
function percentageNumber() { function percentageNumber() {
let percent; let percent;
if ((!ops.numFlag || !ops.onSecondNumber) && !ops.result) { if ((!ops.numFlag || !ops.onSecondNumber)) {
percent = Number(ops.firstNum) / 100; percent = Number(ops.firstNum) / 100;
ops.firstNum = String(percent); ops.firstNum = String(percent);
} else if (ops.result !== "" ) { } else if (ops.result !== "" ) {