December 2019
Beginner
510 pages
12h 7m
English
Each hexadecimal character is made up of 4 bits, so if we have a single character, we can quite simply convert it into its decimal equivalent and then convert that into binary, like we did in the previous chapter. The following table provides a mapping of single hexadecimal characters and their binary and decimal equivalents:
| Decimal | Hexadecimal | Binary |
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| 10 | A | 1010 |
| 11 | B | 1011 |
| 12 | C | 1100 |
| 13 | D | 1101 |
| 14 | E | 1110 |
| 15 | F | 1111 |
That is pretty straightforward, but what if you have multiple hexadecimal characters? Would you believe it is as simple as doing each character separately and merging the ...
Read now
Unlock full access