Bug 487493

Summary: kcalc miscalculates equasions
Product: [Applications] kcalc Reporter: Unknown <null>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 23.08.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Unknown 2024-05-24 17:36:43 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
kcalc miscalculates equasions

STEPS TO REPRODUCE
1. open kcalc
2. calculate 50 = 50 *2


OBSERVED RESULT
comes out 150

EXPECTED RESULT
should come out 200

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
Fedora KDE spin
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Antonio Rojas 2024-05-24 19:37:14 UTC
> 2. calculate 50 = 50 *2

what exactly is this meant to compute?
Comment 2 Evan Teran 2024-05-25 21:58:32 UTC
(In reply to Antonio Rojas from comment #1)
> > 2. calculate 50 = 50 *2
> 
> what exactly is this meant to compute?

I'm assuming that the reporter meant "50+50*2" because that would indeed produce 150.

If that's so, this is not a big as kcalc implements proper order of operations, making 200 NOT the correct answer.