Advertisement

Apple's tasty calculator mistake


In a recent tip, TUAW reader Dr. Drang told us about a bug he found on the iPhone/iPod touch's calculator. According to his research, when you type π × 2 + 5 = into the calculator you get 11.283... (the correct answer). However, when you reverse the Pi and 2, entering 2 × π + 5, the answer given is 7.

This error can be demonstrated by entering Pi (3.141592654) manually, instead of using the Pi button -- you will get the correct answer each time. Therefore, this error only shows up when you use the Pi button.

So, be sure to read up on this bug from the tipsters website before you use the calculator for anything too important.

Update: Reader Vineet writes in the comments to note that he believes this behavior is typical of stack-based calculators and should be considered more of an operator-expectations issue than a true bug. Dr. Drang responds (with a little bit of attitude) to disagree, maintaining that the behavior is a legitimate bug.

Thanks for the tip, Dr. Drang!