The difference should be very small, but starting with smaller numbers will be a little more accurate. Consider, for purposes of presentation, that your floating point number contains only 4 significant digits and a metric, and that it was decimal, not binary. Using numbers:
a = 5000 b = 5000 c = 1000e4 (10000000)
If we add c first, then either a or b , then the smaller one will fall from the view and be rounded. The final result c + b + a will give 1000e4 . If, on the other hand, we add a and b , we first get 1e4 as the first intermediate value, and adding that 1001e4 will be 1001e4 to c , which is a more accurate result for the operation.
source share