zxcodes/Calculator

Consecutive Operators and Decimal

Opened this issue · 2 comments

The application does not handle the case where the user could press multiple operators consecutively, to basically "string" them together succesively.

For example, the user could press the '+' button 5 times then the 'x' button 3 times, ultimately resulting in an error. Perhaps the application should disable the user's ability of clicking an operator or decimal button twice or more in a row?
A simple conditional could prevent the user from doing this.

issue

I will fix this issue, @zxcodes could you assign me this?

Hey ! I have solved this issue. Can you please merge the request