Converting Binary to Hexadecimal

To convert binary numbers to hex, put the bits in groups of 4, starting with the right-justified bits. Groups of 4 bits are often called nibbles. Each nibble can be represented by a single hexadecimal digit. A group of two nibbles is an octet, 8 bits. Examples follow.

Conversion Example B-9 Convert 0010011101 to Hex

Group the bits:

00 1001 1101 Answer: 09Dh

Conversion Example B-10 Convert 0010101001011001000010110001 to Hex

Group the bits:

0010 1010 0101 1001 0000 1011 0001 Answer: 2A590B1h

0 0

Post a comment