Binary to Octal Conversion

Опубликовано: 19 Март 2026
на канале: AKD Classes
32
1

#binarytooctal #numberconversion
Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2).Whereas, Octal number is one of the number systems which has only 8 symbols: 0, 1, 2, 3, 4, 5, 6, and 7.
Every octal number can be expressed in 3 bit binary format. So, if we can make each group of 3 bit of binary input number, then replace each group of binary number from its equivalent octal digits. That will be octal number of given number. In this procedure, if required we can add any number of 0’s in leftmost bit (or in most significant bit) for integer part and add any number of 0’s in rightmost bit (or in least significant bit) for fraction part for completing the group of 3 bit, this does not change value of input binary number.

So, the steps to convert a binary number into octal number are as follows:

1. Write the binary number
2. Now, divide the binary digits into groups of three (starting from right) for integer part and (start from left) for fraction part.
3. Convert each group of three binary digits to one octal digit.