Oli Glaser wrote: > On 28/02/2011 12:49, Gerhard Fiedler wrote: >> Oli Glaser wrote: >> >>> (I think you are taking addition to have precedence over subtraction) >> FWIW, this wouldn't be a problem, since they have same precedence and >> are associative (which means that the order of operations doesn't >> matter). >=20 > The order of operations is exactly what caused the initial problem for Jo= e: > 2010 - (2008 + 2) =3D 0 > (2010 - 2008) + 2 =3D 4 AIUI, this is not about an "order of operation" problem, this is about using wrong operations. The first is=20 2010 - 2008 - 2 or better 2010 + (-2008) + (-2) The second is 2010 - 2008 + 2 or better 2010 + (-2008) + 2 The difference is not the order of the operations, but simply using wrong operations. In both of these 2010 + (-2008) + (-2) 2010 + (-2008) + 2 it doesn't matter in which order the operations are executed.=20 Gerhard --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .