自補碼
4位元的權值之和為9的碼,就有自補特性。例如:2 4 2
| | 2 | 4 | 2 | 1 |
0 | | 0 | 0 | 0 | 0 |
1 | | 0 | 0 | 0 | 1 |
2 | | 0 | 0 | 1 | 0 |
3 | | 0 | 0 | 1 | 1 |
4 | | 0 | 1 | 0 | 0 |
5 | | 0 | 1 | 0 | 1 |
6 | | 1 | 1 | 0 | 0 |
7 | | 1 | 1 | 0 | 1 |
8 | | 1 | 1 | 1 | 0 |
9 | | 1 | 1 | 1 | 1 |
剛好是
意即: