Sample Header Ad - 728x90

The calculator performs the operations in correct order after all

-1 votes
1 answer
780 views
I was wrong. I checked several sources, including rules for javascript operand calculation rules. The misconception arises because the number beside the parantheses is not bound to the parenthetical expression, which is to be treated as a number, making the equation 3 numbers worked from left to right without any add-sub to deal with. Multiple sources to cite but here is one at bottom of post. Rule 1: First perform any calculations inside parentheses (2=1)=3 Rule 2: Next perform all multiplications and divisions, working from left to right. 6/2*3 = 9. Rule 3: Lastly, perform all additions and subtractions, working from left to right. http://www.mathgoodies.com/les.../vol7/order_operations.html Android calculator performs operations correctly
Asked by Wayne Peeples (1 rep)
Jul 6, 2017, 03:47 PM
Last activity: Jul 6, 2017, 08:06 PM