mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-25 22:10:43 -05:00
fix: repaired number ops
This commit is contained in:
parent
c3e9ec2701
commit
56e3af699c
1 changed files with 1 additions and 1 deletions
|
@ -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 !== "" ) {
|
||||||
|
|
Loading…
Reference in a new issue