# Calculater tidbit

Discussion in 'iPhone' started by 2allbeefpatties, Jul 4, 2007.

1. ### 2allbeefpatties macrumors newbie

Joined:
Jul 1, 2007
#1
When you go past 7 digits the display gets smaller to fit two more. Pretty cool!

2. ### Gonzlobo Suspended

Joined:
May 9, 2007
Location:
Albuquerque
#2
At least it correctly calculates 6 + 3 * 5. As far as I know, windozes' calculator still honks that one up.

3. ### saltflat macrumors newbie

Joined:
Jul 5, 2007
#3
XP sp2 calculator correctly returns 21. I'm just curious about what you think the result should be.

4. ### gr8tfly macrumors 603

Joined:
Oct 29, 2006
Location:
~119W 34N
#4
45

edit:
In XP SP2:
If you use the calculator in "Standard" mode, it will evaluate 6 + 3 * 5 as 45.

When you switch to "Scientific", it will evaluate it as 21.

(order of precedence puts "*" higher than "+", and is evaluated first, same as if the expression were written in source code ("C", and others)).

Just for fun, did the same equation in OS-X, using Apple Calculator app:
Either Basic or Scientific - 21 is the result. I'll take consistent.
If you use RPN, the operators are evaluated in the order entered, with 45 as the result.

2nd Edit:
Tried same experiment with Palm T|X:
Same inconsistencies as Windows: Basic = 45. Advanced = 21.
Nice.......

Joined:
Jul 5, 2007
6. ### gr8tfly macrumors 603

Joined:
Oct 29, 2006
Location:
~119W 34N
#6
Guess that got a bit off topic - but was interesting (at least it was interesting at 1:30am....)

7. ### Gonzlobo Suspended

Joined:
May 9, 2007
Location:
Albuquerque
#7
21. The standard windoze calculator still hoses that one.

8. ### isak.swahn macrumors newbie

Joined:
Jan 21, 2008
#8
No, if you calculate 6 + 3 * 5 using RPN you get 21 if you:
- put 6 on the stack (6 ENTER) [Stack contains: 6]
- then you enter 3 and 5 and multiply them (3 ENTER 5 *). [Stack contains: 6 15],
- Finally you press + to add these numbers [Stack now contains: 21].
So, you would type "6 3 5 * +" in RPN.

If on the other hand you want to calculate (6 + 3) * 5, you type "6 3 + 5 *" to get 45.

9. ### Yossarian macrumors member

Joined:
Apr 3, 2005
#9
What an amusingly bad application... apparently "3 / 0 = 0"

10. ### nate94gt macrumors member

Joined:
Jan 17, 2008
#10

well, you DO realize that regular calculators do NOT prioritize equations, right? They calculate equations as they are typed. 2+2x4 will come out to be 16. They read it as 2+2 = 4 x4 = 16. I was taught that in elementary school.

11. ### cashsimpson macrumors member

Joined:
Jan 15, 2008
Location:
Las Vegas, NV
#11
actually the calculator pops out 3 more...it allows up to 10 numbers to be displayed.