Binary to Hexadecimal Conversion
To convert a binary number into hexadecimal format, first of all pad the binary number with leading zeros on the left most side to make sure that the binary number contains multiples of four bits. After that follow the following two steps:
- First, break the binary number into 4-bit sections from the LSB to the MSB.
- And then convert the 4-bit binary number to its Hex equivalent.
Let us take an example to better understand the method. Let we have any binary number 100 1110 1101 0011 to be converted into its corresponding hexadecimal number. Then we shall apply above two steps as shown below:
4-bit binary number section |
0100 |
1110 |
1101 |
0011 |
Hexadecimal value |
4 |
E |
D |
3 |
Thus the hexadecimal value, corresponding to the binary number 100 1110 1101 0011 is 4ED3.
Hexadecimal to Binary Conversion
To convert a hexadecimal number into a binary number we follow the following two steps:
- First, convert the Hexadecimal number to its 4-bit binary equivalent.
- And then combine the 4-bit sections by removing the spaces.
To better understand the procedure let us take an example of the above hexadecimal number, that is 4ED3 and apply these two steps on it as follows:
Hexadecimal value |
4 |
E |
D |
3 |
4-bit binary number section |
0100 |
1110 |
1101 |
0011 |
Thus for the hexadecimal number 4ED3, we get the corresponding binary number
= 0100 1110 1101 0011
This is the expected answer.
|