Information Technology Reference
In-Depth Information
Ta b l e C - 3
Decimal, Binary, and Hexadecimal Numbers
Decimal Value
Hexadecimal
Binary
13
D
1101
14
E
1110
15
F
1111
16
10
10000
Converting Binary to Hexadecimal
To c o n v e r t b i n a r y n u m b e r s t o h e x , p u t t h e b i t s i n g r o u p s o f 4 , s t a r t i n g w i t h t h e r i g h t - j u s t i -
fied 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.
Group the bits:
00 1001 1101
Answer:
09D h
Conversion Example C-9
Convert 0010011101 to Hex
Group the bits:
0010 1010 0101 1001 0000 1011 0001
Answer:
2A590B1 h
Conversion Example C-10
Convert 0010101001011001000010110001 to Hex
Converting Hexadecimal to Binary
This procedure is also easy. Just change the hex digits into their 4-bit equivalents. Exam-
ples follow.
Hex: 0 D E A D 0
Binary: 0000 1101 1110 1010 1101 0000
Answer: 000011011110101011010000
Conversion Example C-11
Convert 0DEAD0 to Hex
Hex: A A 0 1 0 1
Binary: 1010 1010 0000 0001 0000 0001
Answer: 101010100000000100000001
Conversion Example C-12
Convert AA0101 to Hex
 
 
Search WWH ::




Custom Search