I was taking a programming test last night that had a math equation that simplified to 11 % 2 * 3, no () or likewise. When I compute it, being taught modulous occurs at the same level of multiplication or division. As a result I get
11 % 2 * 3 1 * 3 3
Final result I get is 3. When I checked my math in spotlight calculator on my mac I get 5. And then we jump into the rabbit hole.
I go to my preferred math calculator and visit WolframAlpha. Answer is 5. Google the formula and get 3.
So we have two possible ways to handle this equation,
(11%2)*3 = 3 11%(2*3) = 5
Which way is correct and definitive? I need sources as if Wolfram alpha is doing incorrectly, I would like to have them change it.