# Support Calculator Bug/Fail

Discussion in 'Android Devices' started by Eivindo110, Apr 16, 2013.

1. ### Eivindo110 Lurker Thread Starter Rank: None Points: 5 Posts: 1 Joined: Apr 16, 2013

Apr 16, 2013
1
0
5
When typing -2^2 on the built in calculator on my HTC One X, it gives me the answer -4. And that is wrong... The correct answer is +4. To get that you need to type -2*-2

It happends when typing in a negative number and rais it with an even number.

WRONG: -4^6=-4096
CORRECT: -4*-4*-4*-4*-4*-4=4096

Hope it helped

#1
2. ### AntimonyER AF Addict Rank: None Points: 1,343 Posts: 13,646 Joined: Jun 18, 2010

Jun 18, 2010
13,646
8,004
1,343
Statesboro, GA
It's an order of operations thing. Put parenthesis Round the -2 to get the correct response. It's taking the power first, then applying the negative.

#2
GuitarG20, Hadron and El Presidente like this.
3. ### Hadron   VIP Member Rank:  #8 Points: 2,218 Posts: 19,740 Joined: Aug 9, 2010

Aug 9, 2010
19,740
12,663
2,218
Spacecorp Test Pilot
Dimension Jumping