Page 35 - DCAP101_BASIC_COMPUTER_SKILLS
P. 35
Basic Computer Skills
Notes Step 2: Combine the binary groups.
101 110 010
562 =
8
5 6 2
Hence, 562 = 101110010
8 2
2.2.5 Shortcut Method for Binary to Hexadecimal Conversion
The following steps are used in this method:
Step 1: Divide the binary digits into groups of four (starting from the right).
Step 2: Convert each group of four binary digits to one hexadecimal digit. Remember that
hexadecimal digits 0 to 9 are equal to decimal digits 0 to 9 and hexadecimal digits
A to F are equal to decimal values 10 to 15. Hence, for this step, we use binary to
decimal conversion procedure and represent decimal values 10 to 15 as hexadecimal
A to F.
For binary to hexadecimal conversion we have to remember that
hexadecimal digits 0 to 9 are equal to decimal digits 0 to 9 and hexadecimal
digits A to F are equal to decimal values 10 to 15. Hence, for this step, we
use binary to decimal conversion procedure and represent decimal values
10 to 15 as hexadecimal A to F.
11010011 =?
2 16
Step 1: Divide the binary digit into groups of 4, starting from the right
(LSD)
1101 0011
Step 2: Convert each group of 4 binary digit to 1 hexadecimal digit
2
1
1
3
2
3
1101 = 1x2 +1x2 +0x2 +1 x 2 0011 = 0x2 +0x2 +1x2 +1x2 0
2 2
= 8+4+0+1 = 0+0+2+1
= 13 = 3
10 16
= D
16
Hence, 11010011 = D3
2 16
2.2.6 Shortcut Method for Hexadecimal to Binary Conversion
The following steps are used in this method:
Step 1: Convert decimal equivalent of each hexadecimal digit to 4 binary digits.
Step 2: Combine all resulting binary groups (4 digits each) into a single binary number.
2AB =?
16 2
Step 1: Convert decimal equivalent each hexadecimal digit to 4 binary
digits.
2 = 2 = 0010
16 10 2
A = 10 = 1010
16 10 2
B = 11 = 1011
16 10 2
28 LOVELY PROFESSIONAL UNIVERSITY