| Position (from right, starting at 0) | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary to decimal: add place values where the bit is 1. Decimal to binary: divide by 2 and read remainders upward.
- Positions are powers of 2: 1, 2, 4, 8, 16, 32, 64, 128.
- n bits give 2^n patterns, maximum 2^n - 1.
- Always check by converting back.