13 points · by duck · 16y ago · 23 comments
On "Standard" view, type:
1 + 2 * 3 =
Answer comes back as 9
Switch to "Scientific" view and type the same,
Answer comes back as 7
The reason (of course) is operator precedence; in standard mode it's interpreted as "1 + 2 =" then "* 3 =", while in scientific view it respects BODMAS.
But to me it's counter-intuitive that changing the View also changes the Mode of operation.
If they'd just named that menu "Mode" instead of "View" I'd be fine with it.
On computer calculators, I always type "1 + 2 * 3 =" as "2 * 3 =", "+ 1 =" because I learned the hard way that I can't asume that a calculator is going to respect order of precedence or not.
This also kind of influences my programming, probably for the better - I would rather use parens and be clear than be ambiguous and trust that my interpreter and I agree on what has proper precedence.
edit: Doh! That's what the linked page says. In my defense I have a horrible connection tonight and it didn't load until just now :)
edit 2: Lol@ the itchy trigger-finger. Isn't that what the downvote karma limit is for? :)
some other nice tools there too.