Saturday, November 28, 2009

BINARY ADDITION

The binary number systems consists of only 2 digits : these are 0 and 1.

In this number system, we apply the same rules as adding numbers in the decimal system.




This is the basics of binary addition.

You're probably wondering why 1 + 1 is 1 0 and not 2. That's because there is no number 2 (or 3, 4, 5, 6...) in the system. Every time a 1 + 1 appears, we carry 1 to the following digit and leave a 0 in the first digit.



Now let's try it with a four digit binary number :



So, we add these numbers as we normally would, column by column.

Zero plus zero will be 0.
One plus one will be 1 0. So we write the 0 while the 1 is carried over to the third column.
One plus zero plus one is equal to 1 0. Bring down 0 and carry the 1 over to the 4th column.
1 plus 1 will be 1 0. Add another 1 and the result will be 1 1.
Bring down 1 while the other 1 is carried over.
Bring down the last 1 to get the answer.

No comments:

Post a Comment