Number Systems1
Number Systems1
550
982
Answers
Hundreds Tens Units
550
102 101 100
500 50 0
500 + 50 + 0 = 55010
1. 1010102
2. 1110112
3. 101010012
4. 0011001112
5. 1110101002
Answers
Convert the following to decimal
1. 1010102 = 4210
2. 1110112 = 5910
3. 101010012 = 16910
4. 0011001112 = 10310
5. 1110101002 = 46810
Converting
Octal to Binary
Converting
Octal to Decimal
Explanation
To convert octal to decimal, we multiply the
digits of octal number with decreasing power of
the base number 8, starting from MSB to LSB
and then add them all together.
Example : Convert 4228 to decimal
number.
Solution: Given, 4228
2 x 82 +2 x 81 + 2 x 80
= 128+16 + 2
= 146
Therefore, 4228 = 14610
Converting
Binary to Hexadecimal
Explanation
Split the binary number into
groups of 4
1001110 = 0100 – 1110
Write the 2x on top of each
number starting from the right
Add the numbers that are on
Write down the0 totals,
1 0 0if a1total
1 1is0
larger than 9, convert
2 2 21 2it 2 2 2 2
NOTE: when we do
to the hex letter
not have enough bits
3 2 0 3 2 1 0
lefts to create a 8 4 2 1 8 4 2 1
group of 4 we add 0s
4 14
Example
Convert 11001112 in
Hexadecinal
0 1 1 0 0 1 1 1
23 22 21 20 23 22 21 20
8 4 2 1 8 4 2 1
6 7
6716
Working
Convertthe following into
Hexadecimal
1. 1110101002
2. 11101112
3. 1010102
4. 1112
5. 11100012
Working
Convertthe following into
Hexadecimal
1. 1110101002 = 1D416
2. 11101112 = 7716
3. 1010102 = 2A16
4. 1112 = 716
5. 11100012 = 7116
Converting
Hexadecimal to Binary
Explanation
1. Write each individual number in
the hexadecimal number e.g.
B416
2. Write the binary placement
values for each hex number
3. List 1s under Bthe placement 4
= 11
values
4. Write thethat2are
22 on
21 2 23 22 21 2
3 0 0
split binary
number as 8 4 2 1 8 4 2 1
one whole 1 0 1 1 0 1 0 0
Example
Convert 2C16 to binary
2 C = 12
23 22 21 20 23 22 21 20
8 4 2 1 8 4 2 1
0 0 1 0 1 1 0 0
001011002
Working
Convertthe following hex
numbers to binary
1. AB16
2. F716
3. 1516
4. CC16
5. 2216
Answers
Convertthe following hex
numbers to binary
1. AB16 = 101010112
2. F716 = 111101112
3. 1516 = 000101012
4. CC16 = 110011002
5. 2216 = 001000102
Converting
Decimal to Hexadecimal
Method One
Dividethe decimal number by 16
taking note of the remainders
Keep on dividing the whole
number by 16 until the whole
number obtained is 0.
Write down the remainders next
to each other starting from the
46 /bottom,
16 = 29changing
r 1 numbers
5 greater than 9 to letters
ANS = 1D116
29 / 16 = 1 r 13
1 / 16 = 0 r 1
Example
Convert 80010 to hexadecimal
80 / 16 = 50 r 0
0
50 / 16 = 3 r 2
3 / 16 = 0 r 3
ANS = 32016
Method Two
1. Convert the decimal number to
binary
2. Convert the binary number to
hexadecimal
Eg, changing 45610 to hexadecimal
Example
Convert 80010 to hexadecimal
51 25 12 64 32 16 8 4 2 1
2 6 8
1 1 0 0 1 0 0 0 0 0
512 + 256 + 32 = 800
80010 = 11001000002
0 0 1 1 0 0 1 0 0 0 0 0
23 22 21 20 23 22 2 20 23 22 21 20
1
8 4 2 1 8 4 2 1 8 4 2 1
3 2 0
Working
Convert the following to
Hexadecimal numbers
1. 34010
2. 11910
3. 6610
4. 2510
5. 11110
Answers
Convert the following to
Hexadecimal numbers
1. 34010 = 15416
2. 11910 = 7716
3. 6610 = 4216
4. 2510 = 1916
5. 11110 = 6F16
Converting
Hexadecimal to Decimal
Explanation
Writing down the placement
values on top of each number
starting with 160
Multiply the top value with the
hexadecimal number.
Add all the results
16 2
16 1
16 0
256 16 1
Converting
4 3 A
43A16 to
(256x4) (16x3) (1x10)
decimal 1024 48 10
=1024+48+10
=108210
Working
Convert the following into
decimal
1. 5516
2. CB16
3. F816
4. B416
5. 9016
Answers
Convert the following into
decimal
1. 5516 = 8510
2. B016 = 17610
3. 2F816 = 76010
4. B416 = 18010
5. 9016 = 14410
Homework
Copy and complete this table
Decimal Binary Hexadecim
al
2110
1010101002
2E16
15910
001110002
1C216
44