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

fix(core): make the % works correctly #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iovxw
Copy link

@iovxw iovxw commented Sep 30, 2019

Just like KCalc and GNOME Calculator.

Closes #12

Just like KCalc and GNOME Calculator.

Closes linuxdeepin#12
@iovxw
Copy link
Author

iovxw commented Sep 30, 2019

5000 - 30% 等价于 5000 - (5000 * 0.3)

仅限于 + -,和其他主流计算器行为保持一致

BTW: 由于使用的是 SpeedCrunch 开启了 ALLOW_IMPLICIT_MULT, 所以 100%100 是合法的

@BLumia
Copy link
Member

BLumia commented Oct 1, 2019

cc @hualet

@z966768
Copy link
Member

z966768 commented Jul 9, 2020

2个问题:1.我们当前版本只支持标准模式,标准模式的处理由于之前的需求,直接出结果,逻辑一般的计算器不同,例如5000-30%,直接会显示为5000-0.3,不会合起来计算为5000-(5000×0.3)。如果要修改,可能得提新的需求。2.这一笔代码合入后,计算5000-(30%)的值与5000-30%的值相同,和一些计算器有出入,需要考虑,故当前版本不予合入

@hundundadi
Copy link

After our internal analysis, this modification will cause the existing calculation logic of the calculator to change and does not conform to the calculation logic, so this PR cannot be incorporated.

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 11, 2024

TAG Bot

New tag: 6.0.1
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #110

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 14, 2024

TAG Bot

New tag: 6.0.2
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #114

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Oct 16, 2024

TAG Bot

New tag: 6.5.0
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #115

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Nov 30, 2024

TAG Bot

New tag: 6.5.1
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #117

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 2, 2024

TAG Bot

New tag: 6.5.2
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #118

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 14, 2024

TAG Bot

New tag: 6.5.3
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #120

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 20, 2024

TAG Bot

New tag: 6.5.4
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #129

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 20, 2025

TAG Bot

New tag: 6.5.5
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #133

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 23, 2025

TAG Bot

New tag: 6.5.6
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #134

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Feb 18, 2025

TAG Bot

New tag: 6.5.7
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #135

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

Successfully merging this pull request may close these issues.

How to use % in it?
4 participants