8000 Fix multiple operators by AlexFlorides · Pull Request #31 · zxcodes/Calculator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Fix multiple operators #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AlexFlorides
Copy link

I fixed the issue where the user could add multiple consecutive operators or decimal characters, hence the calculation could not be completed and an error was showing on console.

Also, I simplified the way of checking whether the pressed button is a number or an operator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0