2-Number System
2-Number System
Part II
Prof. Neeraj Bhargava
Pooja Dixit
Department of Computer Science, School of
Engineering & System Sciences
MDS University Ajmer, Rajasthan
Binary to Octal
• Example − Convert binary number 10010110 into octal number.
(226)8 Ans
Binary to Octal
Example 2: Convert 10101012 to octal
• Solution:
• Given binary number is 10101012
• First, we convert given binary to decimal
• 10101012 = (1 * 26) + (0 * 25 ) + (1 * 24) + (0 * 23) + (1 * 22) + (0 * 21) + (1 * 20)
• = 64 + 0 + 16 + 0 + 4 + 0 + 1
• = 64 + 21
• 0101012= 85 (Decimal form)
• Now we will convert this decimal to octal form