WebDevSimplified / Vanilla-JavaScript-Calculator

Pure vanilla JavaScript calculator using modern ES6 syntax and classes
516 stars 554 forks source link

Dividing Zero by Zero breaks the calculator. #12

Closed pauliesnug closed 2 years ago

pauliesnug commented 3 years ago

When I divide 0 by 0 it breaks until I press AC. Dividing 3 by 8 gives infinity but 0 by 0 gives nothing and it stops working.

amjadnoor commented 3 years ago

@EthanDevelops I corrected your statement here.

When I divide 0 by 0 it breaks until I press AC. Dividing 3 by 8 any number by 0 gives infinity but 0 by 0 gives nothing and it stops working.

@WebDevSimplified Please check this bug and fix it.

Nikhil27b commented 3 years ago

19 @WebDevSimplified I fixed this error only pull my request.