Bug 503749

Summary: Simple calculator vs Equation mode
Product: [Applications] kcalc Reporter: Andreas <eandmsz>
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: REPORTED ---    
Severity: wishlist CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas 2025-05-04 11:57:55 UTC
SUMMARY
When you enter: 10+5*2 the result is 20, while I would expect it to be 30.
This is because kCalc doesn't work as a simple calculator and doesn't "finish" the calculation after each operation, but instead the user is entering an equation until ENTER is pressed.

STEPS TO REPRODUCE
1. 10+5*2

OBSERVED RESULT
Result is 20 according to the order of operations, which is correct if we look it as an equation

EXPECTED RESULT
I would expect the result to be 30 (10+5=15, then 15*2=30) because I would expect kCalc to work as a simple calculator in the simple mode, and  finish the calculation after each operation and continue the next operation with the resulting number.

I think there are multiple bug reports which are somewhat tied to the same problem, for example: https://bugs.kde.org/show_bug.cgi?id=487566

SOFTWARE/OS VERSIONS
Linux: kUbuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3