2. Presented by: Misbah
Roll no. 3381
BS Statistics ; semester III
Presented to: Maam Momina
Subject: Computer Science
3. • A number with base 8 is the octal number
• A number with base 10 is the decimal number
• To convert decimal to octal,
Divide the number by 8
Write the remainders in the reverse order
Get the equivalent octal number
4. 3 2 1 0 power of 10 ↓
234510 = 20002*103
3003*102
404*101
55*100
5. 12510=?8
125 / 8 = 15 and rem = 5 (__ 58)
15 / 8 =1 and rem = 7 (finish! 1758)
(Keep dividing by the base until quotient < base)
6. 63810=?8
638 / 8 = 79 and rem = 6 (___ 68)
79 / 8 = 9 and rem = 7 (__ 768)
9 / 8 = 1 and rem = 1 (finish! 11768)
(Keep dividing by the base until quotient < base)
7. 0.34210=?8
0.342 * 8 = 2.7636 ( .28)
0.736 * 8 = 5.888 ( .258)
0.888 * 8 = 7.104 ( .2578)
0.104 * 8 = 0.832 ( .25708)
0.342 ≈ 0.25708 (it is an approximation)
(Take the integer part of every multiplication to form the
Binary number. We can go on many more multiplication to improve the
accuracy of the conversion.)