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

How to use % in it? #12

Closed
DanyGee opened this issue Sep 11, 2018 · 13 comments · May be fixed by #29
Closed

How to use % in it? #12

DanyGee opened this issue Sep 11, 2018 · 13 comments · May be fixed by #29
Labels
need | need more information need | 需要更多的信息,能够提供更多信息方便复现

Comments

@DanyGee
Copy link

DanyGee commented Sep 11, 2018

How can I calculate for example 5000 - 30%?
When trying 5000-30% it throws an error:
zrzut ekranu deepin_deepin-calculator_20180911123015
bitmoji

@reionwong
Copy link

Sorry, this function before accidentally deleted
Now re-add back. (:

405daef

@DanyGee DanyGee closed this as completed Sep 13, 2018
@DanyGee DanyGee reopened this Sep 13, 2018
@DanyGee
Copy link
Author

DanyGee commented Sep 13, 2018

Well, something still isn't right 😉
zrzut ekranu deepin_deepin-calculator_20180913190309

@liubailin2017
Copy link

Well, something still isn't right
zrzut ekranu deepin_deepin-calculator_20180913190309

where is mistake?

@DanyGee
Copy link
Author

DanyGee commented Jan 11, 2019

How much 30% of 5000 would be?
Definately not 000.3 as this magical calculator says 🤣

@tapatoo
Copy link

tapatoo commented Feb 10, 2019

Wanted to open a bug report since I found deepin-calculator is unable to calculate percentages and seems like there is already one outstanding since 11th of September. This bug renders deeping-calculator unusable in my opinion. Just adding my own screenshot here and off to search for a suitable alternative.

deepinscreenshot_deepin-calculator_20190210231729

@ghost
Copy link

ghost commented Apr 23, 2019

Something like this:

30% = 30/100 = 0.3.

What you want to do is:

5000 - (5000 * 0.3)

@DanyGee
Copy link
Author

DanyGee commented Apr 23, 2019

@cephalopodluke I know what I want to do.
The question is: Does the maintainer know how to properly implement it?
When I type 5000 - 30% I expect the result to be 3500 (5000 - 1500 = 3500).
e4f91d37-026a-44d0-91ea-b26cfdaa34a7-7692d7fb-cede-4c34-947c-12129a06b524-v1

@DanyGee
Copy link
Author

DanyGee commented Apr 23, 2019

Dozens of other calculators deal with it flawlessly.

@BLumia BLumia added the need | need more information need | 需要更多的信息,能够提供更多信息方便复现 label Apr 24, 2019
@dylskiMarcin
Copy link

Linked article describes how % operator should behave in calculator.
https://devblogs.microsoft.com/oldnewthing/20080110-00/?p=23853

iovxw added a commit to iovxw/deepin-calculator that referenced this issue Sep 30, 2019
Just like Kcalc and GNOME Calculator.

Closes linuxdeepin#12
iovxw added a commit to iovxw/deepin-calculator that referenced this issue Sep 30, 2019
Just like KCalc and GNOME Calculator.

Closes linuxdeepin#12
@adrienluitot
Copy link

Couldn't be % for modulo instead of percentage ? 🤔

@dylskiMarcin
Copy link

Couldn't be % for modulo instead of percentage ? 🤔

Yeah it would be great, but only when we would considering programmer calculator. So far "deepin-calculator" doesn't even support scientific mode, so...

@z966768
Copy link
Member

z966768 commented Jul 28, 2020

we have do some work,maybe you can try the latest version

@z966768
Copy link
Member

z966768 commented Jan 4, 2021

This issue will be temporarily closed due to no response received. Please reopen the issue if there're any new updates.

@z966768 z966768 closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need | need more information need | 需要更多的信息,能够提供更多信息方便复现
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants