IT - 7 Number Systems Conversions
IT - 7 Number Systems Conversions
Introduction to IT
2
Number System
3
Decimal Number System
5
Octal Number System
6
Hexadecimal Number System
7
Number Notation
9
Conversions
Method:
1. Divide decimal number by 2 (base of binary number).
2. Repeat this method until quotient is less than 2.
3. Bottom to top sequence of remainders will be the
required binary number.
12
Case A: D-to-B Conversion
Divide 14 by 2, we get
2 14 x = 1110
2 7 0 (14)10 = (1110)2
2 3 1
1 1
13
Case A: D-to-B Conversion
Other Examples:
Method:
1. Divide decimal number by 8 (base of octal number).
2. Repeat this method until quotient is less than 8.
3. Bottom to top sequence of remainders will be the required
octal number.
15
Case A: D-to-O Conversion
Example 01:
Example No. 1: (19)10 = (?)8
8 19
2 3
x = 23
(19)10 = (23)8 16
Case A: D-to-O Conversion
Other Examples:
Method:
1. Divide decimal number by 16 (base of octal number).
2. Repeat this method until quotient is less than 16.
3. Replace the numbers from [10-15] by letters [A-F].
4. Bottom to top sequence of remainders will be the required
octal number.
18
Case A: D-to-H Conversion
Example 01:
Example No. 1: (44)10 = (?)16
16 44
2 12 C
x = 2C
(44)10 = (2C)16 19
Case A: D-to-O Conversion
Other Examples:
Method:
1. Write binary number in power of 2 (base of binary number)
2. Index the numbers from right to left starting with zero.
3. Calculate the powers, this will give the number in decimal
21
Case B: B-to-D Conversion
(11011)2 = (27)10
22
Case B: B-to-D Conversion
Other Examples:
Method:
1. Break binary number into groups of three bits each, starting
from the right most bit towards left.
2. If the left most group contains less than three bits, then add
zeros to the left, so that a group of three bit can be formed.
3. Write octal number against each group of three bits from
table.
24
Case B: B-to-O Conversion
111 001
7 1
(111001)2 = (71)8
25
Case B: B-to-O Conversion
Other Examples:
Method:
1. Break binary number into groups of FOUR bits each,
starting from the right most bit towards left.
2. If the left most group contains less than four bits, then add
zeros to the left, so that a group of four bit can be formed.
3. Write Hexadecimal number against each group of four bits
from table.
27
Case B: B-to-H Conversion
0011 1001
3 9
(111001)2 = (39)16
28
Case B: B-to-H Conversion
Other Examples:
Method:
1. Write octal number in power of 8 (base of octal number).
2. Index the octal digits from right to left starting with zero.
3. Calculate the powers, this will give the number in decimal.
30
Case C: O-to-D Conversion
(1234)8 = (668)10
31
Case C: O-to-D Conversion
Other Examples:
Method:
1. Write three bits against each octal digit from table.
2. Join these binary digits and that will be the equivalent of
octal number.
33
Case C: O-to-B Conversion
5 4
101 100
(54)8 = (101100)2
34
Case C: O-to-B Conversion
Other Examples:
Method:
1. Write three binary digits against each octal digit from table.
2. Join these binary digits and that will be the equivalent of
octal number.
3. Group the binary digits into groups of four.
4. If any group has less than 4 digits, then add zeros to the left
and make sure every group has 4 binary digits.
5. Write a Hexadecimal digits against each group from the
table.
36
Case C: O-to-H Conversion
(5402)8= (B02)16
37
Case C: O-to-H Conversion
Other Examples:
Method:
1. Write hexadecimal number in power of 16 (base of
hexadecimal system).
2. Index the hexadecimal digits from right to left starting with
zero.
3. Replace the digits [A-F] with decimal numbers from table
[10-15]
4. Calculate the powers, this will give the number in decimal.
39
Case D: H-to-D Conversion
(A234)16 = (41540)10
40
Case D: H-to-D Conversion
Other Examples:
Method:
1. Write a group of Four bits against each hexadecimal digit
from table.
2. Join these binary digits and that will be the equivalent of
hexadecimal number
42
Case D: H-to-D Conversion
(A234)16 = (1010001000110100)2
43
Case D: H-to-D Conversion
Other Examples:
Method:
1. Write FOUR binary digits against each hexadecimal digit
from table.
2. Join these binary digits and that will be the equivalent
binary of the hexadecimal number.
3. Group the binary digits into groups of THREE.
4. If any group has less than 3 digits, then add zeros to the left
and make sure every group has 3 binary digits.
5. Write a octal digits against each group from the table.
45
Case D: H-to-O Conversion
(A402)16= (122002)8
46
Case D: H-to-O Conversion
Other Examples:
49
End of the Chapter
50