    0

# How can convert binary to octal?

Updated: 9/20/2023 Wiki User

12y ago

To convert a binary number to an octal number, you need to know how an octal number is represented in binary. It is like this:

0 = 000 4 = 100

1 = 001 5 = 101

2 = 010 6 = 110

3 = 011 7 = 111

As you can see, an octal number consists of 3 'bits' (either a 0 of a 1).

Now, to convert a binary number to an octal number, you first have to group the binary digits into groups of 3 bits (starting from the right). Then, you convert every group of bits into octal numbers. This way you get your binary number into an octal one.

For example:

(1010100111010010)2

We group them into groups of 3 bits, starting from the right.

1 010 100 111 010 010

As you see, we have a single digit left. We must add 0's to make it a group of 3 bits.

001 010 100 111 010 010

Then we convert every group into an octal number, according to the table above.

001 = 1 010 = 2 100 = 4 111 = 7 010 = 2 010 = 2

And in this way, you converted a binary number into an octal one.

(1010100111010010)2 = (124722)8 Wiki User

12y ago   Earn +20 pts  