Home » Digital Electronics

Conversion of Binary Number System into Octal Number System

Here, we are going to learn how to convert from Binary Number System into Octal Number System?
Submitted by Saurabh Gupta, on October 15, 2019

To convert binary numbers into octal numbers, we first have to understand the relationship between binary and octal numbers.

Octal Number Binary Number
0000
1001
2010
3011
4100
5101
6110
7111

In octal number system, we have eight digits ranging from 0 to 7 which can be represented using three-bit binary numbers in 23 = 8 ways, so starting from the least significant bit of the binary number, we group three successive bits of the binary number to get its equivalent octal number as seen from the table above.

In an integral part, the grouping of three bits is done from the right side to the left side whereas in the fractional part the grouping of three bits is done from left to right and then convert it to its equivalent octal symbol.

In the process of grouping three bits, one or two bits can be added to the left of the MSB in an integral part and/or to the right of the LSB bit of the fractional part of the binary number.

Example 1: Convert (110011.011)2 to ( ? )8

Binary to Octal Example 1

Therefore, (110011.011)2 = (63.3)8

Example 2: Convert (110011011110.1011)2 to ( ? )8

Binary to Octal Example 2

Therefore, (110011011110.1011)2 = (14676.54)8

Note: In the Example 2, to make a group of three bits, we have added two additional bits to the left of MSB in an integral part and two additional bits to the right of LSB in the fractional part.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.