🌱 How to count
Completed 2021-12-14 (for the second time, originally read ~2011)
Small book by Panic co-founder Steven Frank
Short, simple explanation of how computers count.
I wish he had finished this series.
Some quick references from the book
Binary | Decimal | Power of 2 |
---|---|---|
1 | 1 | 20 |
10 | 2 | 21 |
100 | 4 | 22 |
1000 | 8 | 23 |
10000 | 16 | 24 |
100000 | 32 | 25 |
1000000 | 64 | 26 |
10000000 | 128 | 27 |
Decimal | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
---|---|---|---|---|---|---|---|---|
Binary | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
Any 4 bits can be represented by a single hex digit
Binary | Hexadecimal |
---|---|
0000 | 0 |
0001 | 1 |
0010 | 2 |
0011 | 3 |
0100 | 4 |
0101 | 5 |
0110 | 6 |
0111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | a |
1011 | b |
1100 | c |
1101 | d |
1110 | e |
1111 | f |