If You Type 1+2+3 Into Your iPhone's Calculator on iOS 11, You Probably Won't Get 6 (qz.com)
A reader shares a report: If you've upgraded your iPhone's operating system to iOS 11, try this: Go to the calculator app and quickly type 1+2+3. You likely won't get 6. You might get 23, or 24, or 16, or 32, or something else, depending on what buttons you tap and in what order, and, obviously, none of which is the right answer. It seems to be because of a new animation in the calculator app, where a button briefly fades to white when you press it. The result is that if you press an operator button (i.e., the plus sign) before the short animation finishes, the app ignores it. So, 1 + 2 + 3 accidentally gets read as 1 + 23.
After a basic hello world intro, I had to write a calculator to add subtract multiply and divide in the first week of college. Had mine worked like apples Iâ(TM)d have likely failed. How does this happen?
Although I wonder if the fix would be just to be brave enough to just remove the calculator. Maths is an outdated technology anyway...
UI and software quality is falling because of the emphasis on appearance rather than function, hence Unity and GNOME 3 and this article's stupidity.
GUI animation is the absolute cancer. It's everywhere, on desktop, in applications, on websites.
Really feels like everything returned to the 90's web state full of animated GIFs, blinking text and endless pop-ups.
If you're a developer, please don't be a jerk and get rid of all the animated crap, please.
Only LUDDITES want LUDDITE accurate numbers! Modern app appers want appy numbers that let them app apps while apping other apps!
Apps!
It's pretty funny really, because Apple makes a big deal about how app developers are not supposed to block UI, and about how to make animations interruptible. The fix will probably be pretty simple...
The calculator issue is really bad though. Even just moderately fast pressing of buttons yields input blocking depending on what you are doing.
"There is more worth loving than we have strength to love." - Brian Jay Stanley
CPU time and network time should be better spent on the really important stuff that computers are supposed to do: check for app and o/s updates.
"But remember, most lynch mobs aren't this nice." (H.Simpson)
-- Joe
Bug status : rejected.
"Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
Here is a 1200$ super computer that fits into your pocket! Unfortunately it can't do math.
No, if you type 3+3 and then hit x you get the answer of 3+3 = 6, then you "x" and "3" you get 18. You are asking the calculator what is 3+3 and then asking it to multiply that answer by 3. This is working as designed because it's not a scientific calculator. If you simply switch to Scientific in the options, you can use "( )" and/or other functions to put in a formula. As far as I know the standard Apple calculator does not a scientific option. The user is in error if they want 3+3 * 3 in a non scientific calculator and start hitting buttons.
Sent from my TARDIS
Reminds me of gmail.com's login form which has a similar bug.
If you type username and then Return, the Return does not immediately switch focus to the password field - it only starts an animation and passes focus to the password field when the animation is done.
So, if you type your password too fast, the first few characters will not end up in the password field (or not at all, if your password is short).
Bugs the hell out of me. The older login form did not have this bug.
"We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
I just tried it too. You have to go out of your way to do things fast enough to beat the animation, and even then if you type 1+2+3 fast enough, it will just show "23" on the screen so you'll know there was an error.
It's not like the display shows 1, then 2, then 3 but still adds 1+23. It's a minor annoyance I suppose, and should be fixed in an update, but not at all worthy of an article on Slashdot.
On Win 10 standard calculator ==> 18 Scientific calculator ==> 12
As far as I know the standard Apple calculator does not a scientific option.
Sure it does. Just put your phone into landscape mode.
Texas Instruments had a similar screwup in the early 80's. After capturing a huge chunk of the U.S. calculator market (TI and HP were the brands to buy), Texas Instruments released a series of lower-cost scientific calculators where the keys were not properly debounced . It was practically impossible to type in a long equation without having multiple double or triple press errors.
I tossed mine in disgust, tried out one of the new Sharp scientific calculators just hitting the market, and never looked back. Texas Instruments basically handed over their share of the scientific calculator market to Sharp and Casio in the space of two years.
At least Apple has the advantage of being able to fix this in a software update.
How strange.
Not strange at all. That is zero within "eps", and is because they are using the Intel or AMD math processor for the square root. WE look at "4" and know the square root is exactly two because we learned that. The CPU goes through a standard algorithm for determining the square root of a number, and because of the inherent imprecision of floating point math with a limited number of bits, the answer is not identical to zero because the square root of 4 is not identical to 2.
This is similar in a way to the bug behind the famous Therac-25 incident. The Therac-25 as a medical radiation machine which had software which was supposed to prevent patients receiving dangerous doses of radiation. However it turned out the operators entered configuration command far faster than testers did, creating a race condition that could result in the machine delivering over 100x the safe dosage.
The bug never showed up in testing because the testers never got as fast at input as the operators, and in any case the specific keystroke combination that caused it was rare.
Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
Why nerds like us who are "sperglords" disable animation and flashy bullshit in applications and operating systems, ever since windows XP.
I've been abused countless times for it, but at the end of the day, the goddamn computing device should keep up with ME. Not the other way round. I'm extremely fast on the keyboard, I know endless shortcuts, I can get things done quickly, but I need responsive tools.
But nope, we're just "sperglords" and neck beards who should stop complaining....
No, sorry, that's just wrong by the basic rules of algebra. Multiplication gets precedence over addition. (That newfangled idea of a precedence tree in computer languages is predated by at least a hundred years in mathematics.)
3 + 3 * 3 is 12, period. If your calculator is giving you 18, it is wrong, and is the result of a lazy developer not understanding the appropriate operator precedence. Doing correct arithmetic is non-trivial (it isn't hard, but it isn't trivial: the trivial approach gives you 18 in this case, and that is wrong). This is not a question of "scientific" or "non-scientific" calculators. There is no such thing. Calculators have one kind of function, there is one correct answer,and if they don't get it right, then the designer or implementor is at fault.
Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.