Binary to Octal Conversion
To convert from an integer binary number to octal we follow the following two steps:
- First break the binary number into 3-bit sections from the LSB to the MSB.
- And then convert the 3-bit binary number to its octal equivalent.
Let us take an example to better understand it. If we have given any binary number say 11001011010001 to convert into Octal Number System, we shall apply above two steps on this number as follows:
3-bit Section of Binary Number |
011 |
001 |
011 |
010 |
001 |
Equivalent number |
3 |
1 |
3 |
2 |
1 |
Thus the Octal Number, Equivalent to The Binary Number 11001011010001 is 31321.
Octal to Binary Conversion
To convert any integer octal number to its corresponding binary number we follow the following two steps:
- First convert the decimal number to its 3-bit binary equivalent.
- And then combine the 3-bit sections by removing the spaces.
Let us take an example. If we have any octal number integer 31321(Q) to convert into its corresponding binary number, we shall apply above two steps as follows:
Equivalent number |
3 |
1 |
3 |
2 |
1 |
3-bit Section of Binary Number |
011 |
001 |
011 |
010 |
001 |
Thus the binary equivalent for the octal number 31321(Q) is 011 0010 1101 0001.
|