fix(core): make the % works correctly#29
Conversation
Just like KCalc and GNOME Calculator. Closes linuxdeepin#12
|
5000 - 30% 等价于 5000 - (5000 * 0.3) 仅限于 BTW: 由于使用的是 SpeedCrunch 开启了 |
|
cc @hualet |
|
2个问题:1.我们当前版本只支持标准模式,标准模式的处理由于之前的需求,直接出结果,逻辑一般的计算器不同,例如5000-30%,直接会显示为5000-0.3,不会合起来计算为5000-(5000×0.3)。如果要修改,可能得提新的需求。2.这一笔代码合入后,计算5000-(30%)的值与5000-30%的值相同,和一些计算器有出入,需要考虑,故当前版本不予合入 |
|
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. |
|
TAG Bot New tag: 6.0.1 |
|
TAG Bot New tag: 6.0.2 |
|
TAG Bot New tag: 6.5.0 |
|
TAG Bot New tag: 6.5.1 |
|
TAG Bot New tag: 6.5.2 |
|
TAG Bot New tag: 6.5.3 |
|
TAG Bot New tag: 6.5.4 |
|
TAG Bot New tag: 6.5.5 |
|
TAG Bot New tag: 6.5.6 |
|
TAG Bot New tag: 6.5.7 |
|
TAG Bot New tag: 6.5.8 |
|
TAG Bot New tag: 6.5.9 |
|
TAG Bot New tag: 6.5.10 |
|
TAG Bot New tag: 6.5.11 |
|
TAG Bot New tag: 6.5.12 |
|
TAG Bot New tag: 6.5.13 |
|
TAG Bot New tag: 6.5.14 |
|
TAG Bot New tag: 6.5.15 |
|
TAG Bot New tag: 6.5.16 |
|
TAG Bot New tag: 6.5.17 |
|
TAG Bot New tag: 6.5.18 |
|
TAG Bot New tag: 6.5.19 |
|
TAG Bot New tag: 6.5.20 |
|
TAG Bot New tag: 6.5.21 |
|
TAG Bot New tag: 6.5.22 |
|
TAG Bot New tag: 6.5.23 |
|
TAG Bot New tag: 6.5.24 |
|
TAG Bot New tag: 6.5.25 |
|
TAG Bot New tag: 6.5.26 |
|
TAG Bot New tag: 6.5.27 |
|
TAG Bot New tag: 6.5.29 |
|
TAG Bot New tag: 6.5.30 |
|
TAG Bot New tag: 6.5.31 |
|
TAG Bot New tag: 6.5.32 |
|
TAG Bot New tag: 6.5.33 |
Just like KCalc and GNOME Calculator.
Closes #12