Page 60 - Computer Science Class 11 Without Functions
P. 60
Example 47: Convert (A1F.B3) to its equivalent octal number.
16
A 1 F . B 3
↓ ↓ ↓ ↓ ↓
1010 0001 1111 1011 0011
Binary equivalent of (A1F.B3) is (101000011111.10110011) 2
16
one 0 added
1 0 1 0 0 0 0 1 1 1 1 1 . 1 0 1 1 0 0 1 1 0
5 0 3 7 . 5 4 6
Octal equivalent of (101000011111.101100110) is (5037.546) 8
2
Find octal representation of (9.7) , (5A.AF) , and (C4.98) .
16
16
16
Conversion of Octal Numbers to Hexadecimal
To convert an octal number to a hexadecimal number, first convert it to a binary number and then convert the binary
number to hexadecimal number.
Example 48: Convert (75.36) to a hexadecimal number
8
(75.36) 8
7 5 . 3 6
↓ ↓ ↓ ↓
111 101 011 110
Binary equivalent of (75.36) is (111101.011110)
8 2
two 0s added two 0s added
0 0 1 1 1 1 0 1 . 0 1 1 1 1 0 0 0
3 D . 7 8
Hexadecimal equivalent of (111101.011110) is (3D.78) 16
2
1. Write binary and octal equivalents for the following hexadecimal digits:
F, A, 5, C
2. Find hexadecimal representation of (10.5) , (32.6) and (40.3) .
8
8
8
Perform the following conversions:
a. (10011.01) to decimal
2
b. (C25.D2) to decimal
16
c. (157.25) to decimal
8
d. (0.341) to hexadecimal
10
Ans:
a. (10011.01) to decimal number.
2
Face Value 1 0 0 1 1 . 0 1
0
Place value 2 4 2 3 2 2 2 1 2 . 2 –1 2 –2
58 Touchpad Computer Science-XI

