This is what's meant by the "addition is associative". (A+B)+C == A+(B+C). That's just as true in programming as it is in number theory.
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> A = 0.5
>>> B = -0.5000000000000001
>>> C = 0.00000000000000005
>>> (A + B) + C
>>> A + (B + C)
« Older Ron Arad makes 2D art out of cars. Kind of like pr... | The Malayali Nurse on the Moon... Newer »
This thread has been archived and is closed to new comments
Buy a Shirt