Binary Addition
Binary Arithmetic 1:
Adding binary numbers
- Adding binary numbers, in principle are the same as adding decimal numbers; the difference is that we can only count to 1 in any column instead of 9 before carry over to the next digit/column.
There are only 4 rules for binary addition:
The first 3 rules are straight forward:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
0 |
|
0 |
|
1 |
+ 0 |
+ 1 |
+ 0 |
||
0 |
1 |
1 |
The 4th rule involves a carry to the next digit value because we can only count up to 1 in any column:
1 1 |
+ 1 |
1 0 |
0 sum with 1 carried to the next column
Therefore, in the example below:
1 1 |
1 |
+ 1 |
1 1 |
Here, the sum value is 1 (because we can count up to 1 in any column) and for each set of two 1s, we carry over 1.)
- A good rule to remember is that any time you find two 1's in a column, carry a 1 to the next and evaluate what's left.
- If you find that there is another set of two 1's, carry that too, and so on.