These are the steps in SUBTRACTING Binary Numbers:
- Just like in adding, you must first align the binary numbers accordingly.
- Apply the rules of subtracting in each column remember that (0-0=0, 1-0=1, 1-1=0, 0-1=1borrow 1)
- Repeat the steps for other columns.
Examples of Subtracting Binary Numbers:
• 1011011 − 10010 = 1001001:
• 1010110 − 101010 = 101100:
| 0 | | 0 | | | | |
| ×1 | 10 | ×1 | 10 | 1 | 1 | 0 |
− | | 1 | 0 | 1 | 0 | 1 | 0 |
| | 1 | 0 | 1 | 1 | 0 | 0 |
• 1000101 − 101100 = 11001:
| 0 | 1 | 1 | | | | |
| ×1 | ×10 | ×10 | 10 | 1 | 0 | 1 |
− | | 1 | 0 | 1 | 1 | 0 | 0 |
| | | 1 | 1 | 0 | 0 | 1 |
• 100010110 − 1111010 = 10011100:
| 0 | 1 | 1 | 1 | 10 | | | | |
| ×1 | ×10 | ×10 | ×10 | ×1 | 10 | 1 | 1 | 0 |
− | | | 1 | 1 | 1 | 1 | 0 | 1 | 0 |
| | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 |
• 101101 − 100111 = 110:
| | | 0 | 10 | | |
| 1 | 0 | ×1 | ×1 | 10 | 1 |
− | 1 | 0 | 0 | 1 | 1 | 1 |
| | | | 1 | 1 | 0 |
• 1110110 − 1010111 = 11111:
| | 0 | 10 | 1 | 10 | 10 | |
| 1 | ×1 | ×1 | ×10 | ×1 | ×1 | 10 |
− | 1 | 0 | 1 | 0 | 1 | 1 | 1 |
| | | 1 | 1 | 1 | 1 | 1 |
can u explain logic when we substract 0 from 1
ReplyDelete