Open khushboo-tolat opened 3 months ago
case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break;
Cannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current operand. Hope this works
case '÷': if(curr == '0') { compute = '0'; } else{ compute = prev / curr; } break;
Cannot add an error message because for divide by zero as we are using getDisplayNumber() method to edit current operand. Hope this works