Page 59 - Computer Science Class 11 Without Functions
P. 59
Example 42: Convert (10110.10) to its equivalent hexadecimal number.
2
three 0s added two 0s added
00010110 . 1 0 0 0
1 6 8
(10110.10) = (16.8) 16
2
Find hexadecimal representation of (110.01) , (100.101110) , and (110.011) .
2
2
2
Conversion of Hexadecimal Numbers to Binary
To convert a hexadecimal number to binary, write the 4-bit binary equivalent of each hexadecimal digit.
Example 43: (.D8) to binary
16
0. D 8
↓ ↓
1101 1000
= (0.11011000) 2
Example 44: Convert (16.8) to binary
16
1 6 . 8
↓ ↓ ↓
0001 0110 1000
= (10110.10) 2
Example 45: Convert (C7B.D6E) to binary
16
C 7 B . D 6 E
↓ ↓ ↓ ↓ ↓ ↓
1100 0111 1011 1101 0110 1110
=(110001111011.110101101110)
2
Find binary representation of (9.7) , (5A.AF) , and (C4.98) .
16 16 16
Conversion of Hexadecimal Numbers to Octal
To convert a hexadecimal number to an octal number, first convert it to a binary number and then convert the binary
number to a hexadecimal number.
Example 46: Convert (1F.3) to its equivalent octal number.
16
1 F . 3
↓ ↓ ↓
0001 1111 0011
Binary equivalent of (1F.3) is (00011111.0011) 2
16
two 0s added
0 1 1 1 1 1 . 0 0 1 1 0 0
3 7 . 1 4
Octal equivalent of (00011111.0011) is (37.14)
2 8
Number Systems and Encoding Schemes 57

