🔥 Binary to Octal number conversion||By using two methods||Bin_Octal conversion in simple steps 🔥
binary to octal conversion, we learn to convert base 2 number system into base 8 number system. We cannot directly convert binary to octal, so we first convert binary to decimal, then the decimal number to the equivalent octal number system. Binary numbers are commonly used in computers, in the form of bits and bytes, since the computer understand the language of 0 and 1 only. At the same time, octal numbers are used in electronics. Before going to the conversion, we have to learn about octal and binary numbers.
What are Binary Numbers?
Numbers to base 2 is called binary numbers. It uses only two digits, 0 and 1. It is denoted by a2, where a is a number with 0’s and 1’s.
Examples:
1111102
11111112
10110012
What are Octal numbers?
The number to the base 8 is called octal numbers. It uses the numbers from 0 to 7. The numbers 8 and 9 are not included in the octal number system. It is denoted by a8 where a is a number with digits 0 to 7.
Conversion from Binary to Octal
In number system, you will come across different types of numbers such as binary, octal, decimal and hexadecimal. To convert binary numbers to octal numbers, follow the below steps:
Take the given binary number
Multiply each digit by 2n-1 where n is the position of the digit from the decimal
The resultant is the equivalent decimal number for the given binary number
Divide the decimal number by 8
Note the remainder
Continue the above two steps with the quotient till the quotient is zero
Write the remainder in the reverse order
The resultant is the required octal number for the given binary number