Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
This repository was archived by the owner on May 25, 2022. It is now read-only.

Zero Division Error in create_calculator_app  #320

@Atharv-Joshi

Description

@Atharv-Joshi

Description

When any number is divided by zero ,the program returns a zero division error.
error

Steps to reproduce the bug :

  • Enter any number as the first operand

  • Press the division button

  • Enter zero as the second operand.

This can be fixed by a **try and catch ** block .

  • I would also like to add a button to calculate the powers of numbers .
    For doing this I plan to change the UI a little i.e. just restrict the '0' button to a single column so that 'power' button can be accommodated in the next column

Type of issue

  • Feature (New Script)
  • Bug
  • Documentation

Checklist:

  • I have read the project guidelines.
  • I have checked all the existing projects, before submitting a new project issue.
  • I have checked previous issues to avoid duplicates.
  • This issue will be meaningful for the project.
  • I have added screenshots of the bug
  • I have added steps to reproduce the bug
  • I have proposed a possible solution for the bug

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions