Page 29 - Computer Class 06
P. 29
Conversion from Binary to Hexadecimal Number System
Rules :
1. To convert a binary into hexadecimal, divide it into groups of four digits starting
from right to left.
2. If the number of digits is not a multiple of 4, prefix the number with 0’s so that
each group contains four digits.
3. For each four digit group, convert the four bit binary number into an equivalent
hexadecimal digit.
Example 1 : (111101) = (7A) Example 2 : (10101101111) = (56F)
2 16 2 16
0111 1010 0101 0110 1111
7 10(A) 5 6 15(F)
Conversion from Hexadecimal to Binary Number System
Rules :
1. Convert each hexadecimal digit to a 4 digit binary number (the hexadecimal
digits may be treated as decimal for this conversion).
2. Combine all the resulting binary groups (of 4 digits each) into a single binary
number.
Example 1 : (54) = (1011000)
16 2
Step 2 : (88) = (1011000)
Step 1 : (54) = (88) 10 2
16 10
2 88
5 8 2 44 0
16 1 16 0 2 22 0
16 1 2 11 0
2 5 1
(5x16)+(8x1) 1
2 2 0
80 + 8 1
88
Answer : (54) = (88) = (1011000)
16 10 2
Computer-6 29