https://bugs.kde.org/show_bug.cgi?id=444994

            Bug ID: 444994
           Summary: Calculator giving me wrong answers (PEMDAS)
           Product: krunner
           Version: 5.23.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: calculator
          Assignee: alexander.loh...@gmx.de
          Reporter: guilhermecunha....@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

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)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to