SUMMARY Krunner is not able to handle PEMDAS correctly. STEPS TO REPRODUCE 1. Open Krunner 2. type **6/158(154+5)-10 ** OBSERVED RESULT -9,999761165512300 EXPECTED RESULT -3.96202531646 SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.23.2 KDE Plasma Version: 5.23.2 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION I'm going to use a simple expression: 2/1(2+1) (2/1)*(2+1) 2*(2+1) 2*3 Answers: 6 (Correct) but Krunner try it: 2/1(2+1) 2/(1*3) 2/3 Answers: 0,6666666666666667 (Wrong)
Do you have libqalculate installed?
(In reply to Nate Graham from comment #1) > Do you have libqalculate installed? Yup! # pacman -Qn | grep libqalculate libqalculate 3.21.0-1 I can't uninstall because plasma-workspace need that lib, if I try: $ pacman -R libqalculate verificando dependências... erro: falha ao preparar a transação (não foi possível satisfazer as dependências) :: a remoção de libqalculate quebra a dependência "libqalculate" necessária por plasma-workspace.
I force uninstall: $ pacman -Rdd libqalculate But... https://i.imgur.com/8fFsgAP.png The problem then is not with krunner, in that case, I can close the issue and open a new at https://github.com/qalculate/libqalculate?
Indeed! And you can put the URL of your libqalculate bug report in the URL field of this one.
Issue: https://github.com/Qalculate/libqalculate/issues/350
(In reply to Nate Graham from comment #4)
(In reply to Nate Graham from comment #4) > Indeed! And you can put the URL of your libqalculate bug report in the URL > field of this one. You can see here: https://github.com/Qalculate/libqalculate/issues/350#issuecomment-963831275 For qalc '2/1 (2+1) = 6' and '2/1(2+1) = 0,666666667' are diferent expression and diferent result. Check here: https://i.imgur.com/jdZ2n9n.png Now, Krunner without space: https://i.imgur.com/VI7XqAP.png With space: https://i.imgur.com/mYKK4jB.png