Numbers are in
Operation
Add
Bit width for negative answers, NOT and overflow
1011 + 110 = 10001
Binary
0001 0001
Decimal
17
Hexadecimal
11
Octal
21
In 8 bits
0001 0001
Hex 11 · read as unsigned 17 · read as signed 17
Fits in 8 bits either way (unsigned 0 to 255, signed −128 to 127).
Step by step
| carries | 1 | 1 | 1 | ||
|---|---|---|---|---|---|
| 1 | 0 | 1 | 1 | ||
| + | 0 | 1 | 1 | 0 | |
| = | 1 | 0 | 0 | 0 | 1 |
Explain every column
- 1st (1s) column: 1 + 0 = 1: write 1.
- 2nd (2s) column: 1 + 1 = 10: write 0, carry 1.
- 3rd (4s) column: 0 + 1 + 1 = 10: write 0, carry 1.
- 4th (8s) column: 1 + 0 + 1 = 10: write 0, carry 1.
- The last carry becomes a new 1 at the front.
In decimal: 11 + 6 = 17