Академический Документы
Профессиональный Документы
Культура Документы
www.thebryantadvantage.com
Back To Index
Hex numbers are read much the same way, except the units here are
units of 16. The number 15 in hex is read as having five units of one
and one unit of sixteen. The number 289 in hex is nine units of one,
eight units of sixteen, and two units of 256 (16 x 16).
Since hex uses units of sixteen, how can we possibly represent a value of
10, 11, 12, 13, 14, or 15? We do so with letters. The decimal 10 is
represented in hex with the letter a; the decimal 11 with b; the
decimal 12 with c, 13 with d, 14 with e, and finally, 15 with
f. (Remember that a MAC address of ffff.ffff.ffff is a Layer 2
broadcast.)
Practice Your Conversions For Exam Success
Now that you know where the letters fall into place in the hexadecimal
numbering world, youll have little trouble converting hex to decimal and
decimal to hex if you practice.
How would you convert the decimal 27 to hex? You can see that there is
one unit of 16 in this decimal; that leaves 11 units of one. This is
represented in hex with 1b one unit of sixteen, 11 units of one.
Decimal Number
27
Units of
256
0
Units of
16
1
Units of
1
B (11)
Hexadecimal
Value
1b
Decimal Number
322
Units of
256
1
Units of
16
4
Units of
1
2
Hexadecimal
Value
142
Hexadecimal
Number 144
Units of
256
1
Units of
16
4
Units
of 1
4
Decimal
Value
256 + 64 + 4
= 324
What about the hex figure c2? We now know that the letter c
represents the decimal number 12. This means we have 12 units of
16, and two units of 2. This gives us the decimal figure 194.
Hexadecimal
Number c2
Units of
256
0
Units of
16
12
Units of
1
2
Decimal
Value
192 + 2 =
194
I have written 20 practice questions that will help you practice your
hexadecimal conversion skills. Once you practice with these questions,
and know exactly how each answer was arrived at, youll have no
problem with hexadecimal conversions on your Cisco exams.
Best of luck!
To your success,
Chris Bryant, CCIE #12933
1.
2.
3.
4.
5.
6.
7.
8.
9.
Before we go through the answers and how they were achieved, let's
review the meaning of letters in hexadecimal numbering:
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
that ffff.ffff.ffff is a Layer 2 broadcast !)
(And remember
_________________________________________________________________________
1.
There are two units of 256, ten units of 16, and nine units of 1.
512 + 160 + 9 = 681
______________________________________________________
______________________________________________________
5.
There are three units of 256, fourteen units of 16, and four units of 1.
768 + 224 + 4 = 996
______________________________________________________
256 16 1
0
Are there any units of 16 in the decimal 13? No.
256 16 1
Are there any units of 1 in the decimal 13? Sure. Thirteen of them.
Remember how we express the number "13" with a single hex
character?
256 16 1
The answer is "d". It's not necessary to have any leading zeroes when
expressing the number.
_________________________________________________
3
784 - 768 = 16
Obviously, there's one unit of 16 in 16. Since there is no remainder, we
can place a "0" in the remaining slots.
256 16 1
1
Are there any units of 16 in the decimal 163? Yes, ten of them, with a
remainder of three.
256 16 1
Three units of one takes care of the remainder, and the hex number
"1a3" is the answer.
256 16 1
______________________________________________________
9.
Are there any units of 256 in the decimal 1903? Yes, seven of them,
totaling 1792. This leaves a remainder of 111.
256 16 1
7
Are there any units of 16 in the decimal 111? Yes, six of them, with a
remainder of 15.
256 16 1
By using the letter "f" to represent 15 units of 1, the final answer "76f" is
achieved.
256 16 1
_________________________________________________
1
Are there any units of 16 in 89? Yes, five of them, with a remainder of
9.
256 16 1
_________________________________________________
128 64 32 16 8 4
66 0
1
0 0 0 0
2
1
128 64 32 16 8 4
18 0
0
0 1 0 0
2 1
1 0
128 64 32 16 8 4
169 1
0
1 0 1 0
2 1
0 1
60
128 64 32 16 8 4
0
0
1 1 1 1
2 1
0 0
116
128 64 32 16 8 4
0
1
1 1 0 1
2 1
0 0
128 64 32 16 8 4 2
0
0 1
1 0 0 1
1 Decimal
1
51
To finish answering the question, convert the decimal 51 to hex. Are there
any units of 256 in the decimal 51? No. Are there any units of 16 in the
decimal 51? Yes, three, for a total of 48 and a remainder of three. Three
units of one gives us the hex number "33".
256 16
128 64 32 16 8 4 2
1
1 0
0 1 1 1
1 Decimal
1
207
Now convert the decimal 207 to hex. Are there any units
of 256 in the decimal 207? No. Are there any units of
128 64 32 16 8 4 2
0
1 0
1 1 1 0
1 Decimal
1
93
128 64 32 16 8 4 2
1
0 0
1 1 1 0
1 Decimal
1
157
Now convert the decimal 157 to hex. There are no units of 256.
How many units of 16 are there in the decimal 157? Nine, for
a total of 144 and a remainder of 13. You know to express the
number 13 in hex with the letter "d", resulting in a hex number of
"9d".
256 16 1
9 d
128 64 32 16 8 4 2
1
1 0
1 0 1 0
1 Decimal
1
213
Now convert the decimal 213 to hex. No units of 256, but how
many of 16? Thirteen of them, with a total of 208 and a remainder
of 5. Again, the number 13 in hex is represented with the letter "d",
and the five units of one give us the hex number "d5".
256 16 1