Escolar Documentos
Profissional Documentos
Cultura Documentos
2 Hexadecimal Numbers
In the previous section we looked at the decimal (base 10) and binary (base
2) number systems. In this section we look at the hexadecimal (base 16)
number system.
1210 = C16,
Problems 1.2.1
Positional Weights of Digits in the Hexadecimal System Conversions Hex to Decimal and Decimal to Hex
The hexadecimal column weights are:
164
163
162
161 160
Example 1.2.1
Example 1.2.2
Problem 1.2.2
Problems 1.2.3
Remainder
Hex
0.6875 x 16 = 11
0.6875 x 16 = 11
0.9375 x 16 = 15
LSD
MSD
Example 1.2.3
To convert a binary number such as 1 0100 0110 0001
0000 above to hexadecimal, convert each group of 4 digits
beginning with the LSD into hex.
Binary
Number
Grouped
into 4's
Equivalent
1
Hex Digit
0100
0110
0001
0000
Problem 1.2.5
Show that 10 1011 00012 = 2B116
1111
00102 .
Problems 1.2.6
a) Convert hexadecimal 2BF9 to its binary equivalent.
b) Convert binary 110011100001 to its hexadecimal
equivalent.
Hexadecimal Numbers in Computing
Although numbers in a computer are stored in binary
form, the hex representation is usually used. The hex
representation of a byte requires only two digits and
the hex representation of two bytes (a word) requires
only 4 digits in hex compared to 16 digits in binary.
Source:
http://www.satoamerica.com/technical/techtips/asciihe
x.html