You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am able to do basic calculations with the calculator but when I try to add or subtract the percentage it doesn't work.
To Reproduce
Steps to reproduce the behavior:
Go to 'TkinterCalculator'
Click on 'myCalculatorV2.py'
Scroll down to '# Calculate percentage' line 67-76
Run the calculator and try to add or subtract a percentage
See error
Expected behavior
I want the calculator to be able to add, subtract, multiply, and divide a percentage.
Desktop (please complete the following information):
OS: Windows 11
VS Code
Additional context
This may be an issue between the GUI and eval(). The main problem is it's parsing a string into numbers through the display. It's hard to grab a number and divide or multiply it before it's been parsed because it's still a string.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am able to do basic calculations with the calculator but when I try to add or subtract the percentage it doesn't work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I want the calculator to be able to add, subtract, multiply, and divide a percentage.
Desktop (please complete the following information):
Additional context
This may be an issue between the GUI and eval(). The main problem is it's parsing a string into numbers through the display. It's hard to grab a number and divide or multiply it before it's been parsed because it's still a string.
The text was updated successfully, but these errors were encountered: