Binary to Octal Conversion
It is easy to convert from an integer binary number to octal. This is accomplished by:
Break the binary number into 3-bit sections from the LSB to the MSB.
Convert the 3-bit binary number to its octal equivalent.
For example, the binary value 1010111110110010 will be written:
001 | 010 | 111 | 110 | 110 | 010 |
1 | 2 | 7 | 6 | 6 | 2 |
It is also easy to convert from an integer octal number to binary. This is accomplished by:
Combine the 3-bit sections by removing the spaces.
1 | 2 | 7 | 6 | 6 | 2 |
001 | 010 | 111 | 110 | 110 | 010 |
The octal number system has a base of eight, meaning that it has eight possible digits: 0,1,2,3,4,5,6,7.
83 | 82 | 81 | 80 | 8-1 | 8-2 | 8-3 | |
=512 | =64 | =8 | =1 | . | =1/8 | =1/64 | =1/512 |
Most Significant Digit | Octal point | Least Significant Digit |
Octal to Decimal Conversion
eg. 24.68 = 2 x (81) + 4 x (80) + 6 x (8-1) = 20.7510
Binary-To-Octal / Octal-To-Binary Conversion
Octal Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Binary Equivalent | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
Each Octal digit is represented by three bits of binary digit.
eg. 100 111 0102 = (100) (111) (010)2 = 4 7 28
Repeat Division
This method uses repeated division by 8. Eg.
convert 17710 to
octal and binary:
177/8 | = 22+ remainder of 1 | 1 (Least Significant Bit) |
22/ 8 | = 2 + remainder of 6 | 6 |
2 / 8 | = 0 + remainder of 2 | 2 (Most Significant Bit) |
Result | 17710 = | 2618 |
Convert to Binary | = 0101100012 |