BOMDAS Vs BODMAS



Simon Biber posted:


In general you do not achieve the correct answer by multiplying first or
by dividing first, but rather by working left to right.


Yes I am well aware of how C operator precedence works -- I was referring
to the way human beings do math.

On the European side of the Atlantic, we learn BOMDAS rather than BODMAS,
and this would lead us to interpret the following line differently:

4 * 12 / 3 * 8


C compiler interpretation: 128

American interpretation: 128

European interpretation: 2

--

Frederick Gotham
.