Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage problem #12

Open
felixsts opened this issue Feb 23, 2021 · 1 comment
Open

Percentage problem #12

felixsts opened this issue Feb 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@felixsts
Copy link
Contributor

felixsts commented Feb 23, 2021

Using the last version of Cyber Calculator I noticed a problem. When you do percentage calculations, it does not take the percentage from the number at left, but the N% of 1 (I don't know if it was clear, so see below).
image
(100+5% should be 105, but it calculates 5% of 1, which is 0.05, and adds to 100)

When you use the Windows or Android calculator (I don't know about Gnome Calculator or KCalc) to do percentage calculations, it does automatically for you and also inserts into the equation. I think that would be a great addition to Cyber Calculator, avoiding this type of problem.

Also, congratulations for the most interesting distro from the last years and sorry if I misspelled something wrong, english isn't my first language.

@felixsts felixsts changed the title Percentage problems Percentage problem Feb 23, 2021
@itsvic-dev itsvic-dev added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Feb 23, 2021
@itsvic-dev
Copy link
Contributor

This isn't really a bug, but more of an enhancement.

It does the calculation correctly (it first evaluates 5%, then adds it to 100), but the user sees it as a possible issue. You can work around this by doing (100+5)%.

The equation evaluator comes from KDE as I see, so it may be coming from KCalc. @rekols will know more about it, I'm sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants