Q. Explain the procedure of Binary to Hex Conversion?
It is simple to convert from an integer binary number to hex. This is completed by:
- Break the binary number into 4-bit sections from the LSB to the most significant bit MSB.
- Convert the 4-bit binary number to its Hex equivalent.
For illustration, the binary value 1010111110110010 will be written:
1010
|
1111
|
1011
|
0010
|
A
|
F
|
B
|
2
|
Illustration; Convert the binary number 1011011111 to hexadecimal.
Breaking the number into groups of four we obtain:
10 1101 1111
By converting every group of 4 bits to hexadecimal we obtain:
2 D F H
The H is there to denote that the number is hexadecimal.