On 2/22/2011 5:56 PM, Jean-Baptiste Lallement wrote:
> Thanks for your report.
> The power operator has the highest precedence over all the binary (+,-,*,/) 
> and unary (negative and positive signs) operators. So the negative sign will 
> be applied after the power operation.
>
> For example -3^2 = -(3*3) = -9 and it is not mean to be -3*-3 = 9
>
> If you want the later you should use parenthesis to change the precedence 
> like: (-3)^2
> In your example the result you want is: (-10)¹²
>
> I'm closing this report because it is not a bug but the expected
> behavior.
>
> ** Changed in: gcalctool (Ubuntu)
>         Status: New =>  Invalid
>
Yeah I'm sorry when I filed the bug I wasn't thinking of that by the 
time i figured it out it was too late

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/723404

Title:
  When you multiply a negative number by a positive exponent it turns
  out a negative number

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to