Skip to content

Divide by zero solution #46

@khushboo-tolat

Description

@khushboo-tolat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions