Bug 177464

Summary: krunner calculator plugin can't handle multiple exponents
Product: [Plasma] krunner Reporter: Unknown <null>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andresbajotierra, finex, ria.freelander
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Unknown 2008-12-11 06:08:51 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Unspecified

If I type 

=2^2

into krunner, it gives me 4. If I type either of

=2^2^1
=(2^2)^1

It gives me 1. For some reason, when there are multiple exponents in an expression, the answer returned is the value after the last exponent. For example,

=(2^2)^(5*2)

gives 10.

This is pretty bad. It almost caused me to write down the wrong answer for my combinatorics take home exam, yikes!
Comment 1 Dario Andres 2008-12-12 01:32:06 UTC
This may be related/duplicate of bug 167986.
I can confirm it using:
Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 895869 / kdebase svn rev. 895869
Comment 2 FiNeX 2008-12-12 18:14:44 UTC

*** This bug has been marked as a duplicate of bug 167986 ***
Comment 3 Dario Andres 2009-01-24 16:08:32 UTC
*** Bug 181764 has been marked as a duplicate of this bug. ***