To represent a binary number as its
equivalent hexadecimal number
Start from the right and group 4 bits at a
time, replacing each 4-bit binary number
with its hex equivalent
To convert from hex to binary
Each hex digit is replaced with its 4-bit
binary equivalent
Ex. Convert hex 29B to binary
2 9 B
= 0010 1001 1011
Ex. Represent binary 100111110101 in hex
1001 1111 0101
= 9 F
Convert to binary first and then
convert to hex
Convert directly from decimal to hex
by repeated division, keeping track of
the remainders
Ex. Convert 4510 to hex
32 16 8 4 2 1
1 0 1 1 0 1 32 + 8 + 4 + 1 = 45
4510 = 0010 11012 = 2D16
Ex. Convert 62910 to hex
512 256 128 64 32 16 8 4 2 1
1 0 0 1 1 1 0 1 0 1
62910 = 512+64+32+16+4+1 = 0010 0111 01012 = 27516
0 Comments