Converting Between Hexadecimal & Binary
Converting Binary to Hexadecimal Walkthrough:
- Group the binary digits into groups of 4, starting from the rightmost digit. If there are not enough digits to make a group of 4, add leading zeros as needed.
0110 1110 - Add column headings to work out the value of each nibble
8 |
4 |
2 |
1 |
8 |
4 |
2 |
1 |
|
0 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
4+2 = 6 8+4+2=14 = E in hex
- Replace each group of 4 bits with its corresponding hexadecimal value:
0110 1110
6 E - Write down the resulting hexadecimal values to get the final answer:
6E
Converting Hexadecimal to Binary Walkthrough:
- To convert a Hex number like A2 into binary write each hex digit in 4-bit binary
- A=10
8 |
4 |
2 |
1 |
8 |
4 |
2 |
1 |
|
1 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
- The binary representation is the numbers altogether: 10100010