elementary / elementary/calculator
Error in percentage calculation
- Dominant language
- Vala
- Stars
- 83
- Forks
- 32
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 3
Description
### What Happened?
When performing an addition or subtraction operation with percentages, the program ignores that it is a percentage.
For example:
100 + 2% = 100.02 (the correct would be 102).
100 - 2% = 99.98 (correct would be 98)
This happens with any number you type.
### Steps to Reproduce
1) I opened the calculator from "Applications".
2) I typed the numbers from the keyboard, including the symbols.
3) I get the wrong result.
4) I enter the values and symbols from the calculator program itself.
5) I persist with the error.
### Expected Behavior
Basically because it is expected to operate with percentages, but what it seems to perform is a decimal operation.
### OS Version
6.x (Odin)
### Software Version
Latest release (I have run all updates)
### Log Output
_No response_
### Hardware Info
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.