Our topic is all about adding and subtracting binary numbers.
These are the steps in ADDING Binary Numbers:
- Align the binary numbers you wish to add.
- Add the binary numbers in each alignment.
- Apply the rules in adding binary numbers (ex. 0+0=0, 0+1=1, 1+1=0). With 1+1=0 there is a carry 1 then add it to the next column to the left.
- Repeat the steps for other columns.
Examples of Adding Binary Numbers:
• 10001 + 11101 = 101110:
• 101101 + 11001 = 1000110:
| 1 | 1 | 1 | | | 1 | |
| | 1 | 0 | 1 | 1 | 0 | 1 |
+ | | | 1 | 1 | 0 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 0 |
• 1011001 + 111010 = 10010011:
| 1 | 1 | 1 | 1 | | | | |
| | 1 | 0 | 1 | 1 | 0 | 0 | 1 |
+ | | | 1 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
• 1110 + 1111 = 11101:
• 10111 + 110101 = 1001100:
| 1 | 1 | | 1 | 1 | 1 | |
| | | 1 | 0 | 1 | 1 | 1 |
+ | | 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 | 0 |
• 11011 + 1001010 = 1100101:
| | 1 | 1 | | 1 | | |
| | | 1 | 1 | 0 | 1 | 1 |
+ | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
No comments:
Post a Comment