Bug 503749 - Simple calculator vs Equation mode
Summary: Simple calculator vs Equation mode
Status: REPORTED
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 11:57 UTC by Andreas
Modified: 2025-05-16 20:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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