Binary addition
Add these binary numbers together: 0 + 0
Note: only the Ans row is checked for correctness.
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | ||
|---|---|---|---|---|---|---|---|---|---|
| Carry | |||||||||
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| + | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Ans |
Binary addition works like decimal addition, but with only two digits (0 and 1).
Rules:
- 0 + 0 = 0
- 0 + 1 = 1
- 1 + 0 = 1
- 1 + 1 = 0 (carry 1)
- 1 + 1 + 1 (with carry) = 1 (carry 1)
Example: Add 00001101 + 00001011
00001101 (13)
+ 00001011 (11)
-----------
00011000 (24)Binary addition
Overview
Rules of binary addition:
| Operand 1 | Operand 2 | Carry in | Sum | Carry out |
|:---------:|:---------:|:--------:|:---:|:---------:|
| 0 | 0 | | 0 | |
| 0 | 1 | | 1 | |
| 1 | 0 | | 1 | |
| 1 | 1 | | 0 | 1 |
| 0 | 0 | 1 | 1 | |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | References: