The binary number 10001101 corresponds to the octal number 215.
Let’s first master a basic thing, that is, the correspondence between binary numbers and octal numbers, as shown in Figure 1. Why do you do this? Because it will be used when converting later, so remember it deeply... (Recommended learning:web front-end video tutorial)
The method of converting binary to octal is to use the three-in-one method, that is, starting from the binary decimal point as the dividing point, every three digits to the left (or right) are taken into one digit, as shown in Figure 2.
After dividing into groups, compare the correspondence table between binary and octal numbers (as shown in Figure 1), add the three-digit binary numbers according to weight, and the number obtained is One octal number is then arranged in order, the position of the decimal point remains unchanged, and the final result is an octal number, as shown in Figure 3.
What needs to be noted here is that when taking three digits to the left (or right), if the highest digit (lowest digit) cannot be collected, then You can add 0 to the leftmost (or rightmost) of the decimal point for conversion, as shown in Figure 4.
The above is the detailed content of The octal number corresponding to the binary number 10001101 is. For more information, please follow other related articles on the PHP Chinese website!