When you go from (a + b) + c to a + (b + c), you're invoking the associative property, not the commutative property.
The confusion between associativity and commutativity is the entire point of this thread!
The confusion between associativity and commutativity is the entire point of this thread!
You're supposed to do (a+b) to demonstrate the effect, because floating point subtraction that results in a number near zero is sensitive to rounding (worst case, a non-zero number gets you a zero number), which can introduce a huge error when a and b are very similar numbers.