When you get back to the step, post the exact expression you are concerned with so we can play.
The order of operation can be crucial when performing limited range integer only calculations. Concider a simple expression such a A*B/C.
At first it looks like order doesn’t matter here. But it does. Let B=7, A=C=2, then we have: 2*7/2 Is this 6 or 7?
How did I get 6? I worked it right to left. 7/2=3 (3?? Oh yeah, integer only!), and 2x3=6.
Depending on the magnitude of the numbers you may want to multiply first (as to keep precision) or to divide first (to prevent an overflow).
Bookmarks