Binary to Hexadecimal Conversion



Binary to Hexadecimal Conversion

To convert a given binary number to its equivalent hexadecimal number, we create groups of 4 bits each on both sides of the binary point. Then, we replace each group of 4-bit binary by the equivalent hexadecimal digit.

Let us understand the conversion of a binary number to its equivalent hexadecimal with the help of examples.

Example 1

Convert (1110111001101.111011)2 to hexadecimal.

Solution

The conversion of the given binary number to hexadecimal equivalent is done as follows −

4-bit Group 1 1101 1100 1101 . 1110 11
0001 1101 1100 1101 . 1110 1100
Hexadecimal Equivalent 1 D C D . E C

Thus, the hexadecimal equivalent of the given binary number is (1DCD.EC)16.

Example 2

Convert (110111110111.1100)2 to hexadecimal.

Solution

We can convert the given binary number into hexadecimal equivalent as follows −

4-bit Group 1101 1111 0111 . 1100
Hexadecimal Equivalent D F 7 . C

Thus, the hexadecimal equivalent of (110111110111.1100)2 is (DF7.C)16.

Advertisements