Bug 490329

Summary: Implicit percentage are not accounted for
Product: [Applications] kcalc Reporter: FlyingWaffle <flyingwaffle>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version: 24.05.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FlyingWaffle 2024-07-15 22:53:03 UTC
SUMMARY
In Plasma 5, Kcalc would accept implicit percentages, for example 40 - 10% would result in 36.
Now, in Plasma 6, Kcalc takes the naive value of the percentage (40 - 10% = 39.9).

STEPS TO REPRODUCE
1. Enter a calculation adding or subtracting a percentage from a number.
2. Check result.

OBSERVED RESULT
40 -10% = 39.9

EXPECTED RESULT
40 - 10% = 36

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux, kernel 6.6.39, amd64
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Comment 1 Gabriel Barrantes 2024-07-16 02:39:53 UTC

*** This bug has been marked as a duplicate of bug 489027 ***