The octal number system is a base-8 number system. This means that it has a total of 8 symbols, , for representing the values.
In computers, octal numbers are represented in two ways:
0o
as the prefix of the value(e.g.0o
)The binary number system, on the other hand, is a base-2 number system. This means that it has a total of 2 symbols,$ 0$ and , for representing the values.
In computers, binary numbers are represented in the following two ways:
0b
as the prefix of the value (e.g. 0b
)The following steps are needed to convert from Octal to Binary:
If we have an Octal value of 8, its binary representation would be:
= 3058
= (011 000 101)2
= (011000101)2
Hence, we can form the following table for octal to binary conversion, where each digit is represented with its corresponding binary representation.