Unit Two - Number System
Unit Two - Number System
Quotient Remainder
Result: 101111
2.1 The Number System
B. Conversion to octal: Here the numbers are divided by 8 because the required base is
octal (base 8).
Quotient Remainder
Result: 57
C. Conversion to hexadecimal Since the conversion now is into hexadecimal (base 16) the
given decimal numbers are divided by 16.
Quotient Remainder
Result: 2F
=
011
6 3
2.1 The Number System
IV. Conversion from Octal to Binary
• Step 1: For each octal digit, find the equivalent three digit binary number.
• Step 2: If there are leading 0s for the binary equivalent of the leftmost octal digit,
remove them.
Example 2.6: Find the binary equivalent for the octal numbers 73.
111 011
2.1 The Number System
V. From Binary to Hexadecimal
• One possible way to convert a binary number to hexadecimal, is first to convert the
binary number to decimal and then from decimal to hexadecimal.
• The simple steps states are stated below.
• Step 1: Starting from the rightmost bit, group the bits in 4. If the remaining bits at the
leftmost position are fewer than 4, add 0s at the front.
• Step 2: For each 4-bit group, find the corresponding hexadecimal number.
2.1 The Number System
Example 2.7: Convert the binary numbers 10011110 to hexadecimal.
1001 1110
9 E
2.1 The Number System
Binary Octal
000 0
001 1
010 2
011 3
100 4
101 5
110 6
111 7
2.1 The Number System
Binary Hexadecimal
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
2.1 The Number System
Binary Hexadecimal
1000 8
1001 9
1010 A - (10 in decimal)
1011 B - (11 in decimal)
1100 C - (12 in decimal)
1101 D - (13 in decimal)
1110 E - (14 in decimal)
1111 F - (15 in decimal)
To Be Continued...
Computer Organization and Architecture
Proposed with: Computer Organization and Architecture