Bug 464153 - Calculator does not follow precedence rules
Summary: Calculator does not follow precedence rules
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Calculator widget (other bugs)
Version First Reported In: master
Platform: NixOS Linux
: NOR normal
Target Milestone: 1.0
Assignee: contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-11 14:42 UTC by contact
Modified: 2025-10-21 09:18 UTC (History)
2 users (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 contact 2023-01-11 14:42:30 UTC
REPRODUCE:
1. Type 1+2*3 
2. Press Enter

Expected: 7
Observed: 9

ADDITIONAL INFORMATION
I am aware, that this is how old-school physical calculators used to work, but I think it is impractical in a modern Desktop, for the meta discussion, visit Ticket #463809.
Comment 1 Niccolò Venerandi 2025-10-21 09:18:01 UTC
This is not what the calculator widget is for. If you want to want to perform more complex math, other widgets can help you there; as an example, the Application Launcher is able to do even very complex maths through the search box, allows editing the input, and allows to be pinned to stay open. The calculator widget is not meant to be that.