Created attachment 183524 [details] Screenshot showing the discrepancy between KCalc and KRunner's attempts at arithmetic. SUMMARY KRunner does not understand the order of operations, whereas KCalc does. In KCalc, "6/2(2+1)" correctly returns 9, whereas KRunner returns 1. KRunner does not seem to be able to read from left-to-right and interprets the problem as "6 divided by (2*3)". This is simply unacceptable, and wrong. STEPS TO REPRODUCE 1. Launch KRunner 2. Enter 6/2(2+1) OBSERVED RESULT Ans=1 EXPECTED RESULT 6/2(2+1) = 6/2*3 = 3*3 = 9 Ans=9 SOFTWARE/OS VERSIONS Linux: Fedora 42 x86_64 KDE Plasma Version: 6.4.3 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1
Curiously, KRunner does correctly solve 6/2*(2+1), when there is an asterisk. KRunner seems to have trouble interpreting the implicit multiplication behind unsigned parentheses.
Confirmed on git-master Lowering priority since there's an easy workaround of using KCalc or another calculator app https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging#Set_the_Severity_field
This is issue in the Qalculate library that KRunner uses: $ qalc "6/2(2+1)" 6 / (2 × (2 + 1)) = 1 Seems to be https://github.com/Qalculate/libqalculate/issues/350.