Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

OCTAL TO BINARY

DANILO T. PANGATUNGAN
INSTRUCTOR
• In mathematics, there are different
number systems to write numbers, say
binary number system (base 2), octal
number system (base 8), decimal (base
Octal to 10), and hexadecimal number system
Binary (base 16). Octal to binary conversion is
defined as converting a number from
base-8 to base-2. It can be done in two
ways that you will learn in this article.
Let us move ahead and learn the
conversion of octal to binary.
• Before learning about octal to binary
What is conversion, let us quickly go through the
meanings of the octal number system and
Octal to binary number system. The
Binary binary number system uses only two digits 0
and 1 to represent numbers. It is also known
Conversion as the base-2 system. It is used with the
? computer system in which 0 and 1 digits are
used to write various scripts. Each digit i.e.
either 0 or 1 is referred to as a bit in the
binary system.
• For example, (01101)2, (01000010)2,
(11000101)2 are a few binary numbers. On
the other hand, the octal number system
includes digits from 0 to 7. Other digits like
For example, 8 and 9 are not included in this system. It is
also known as the base-8 system. Just as the
binary, the octal number system is used in
minicomputers. For example, (73)8, (151)8,
(35)8 are a few octal numbers.
Conversion of octal to
binary
• Conversion of octal to binary is
defined as converting a number from
base-8 to base-2 by using either
direct or indirect methods. All the
digits in an octal number are from
the range of 0 to 7, while all the
digits in a binary number include
only 0 and 1. Let us observe the
octal to binary table given in the next
section.
OCTAL TO BINARY CONVERSION
TABLE
How to Convert Octal to Binary?

• There are two ways to convert octal


to binary, which are explained
below:
• Convert octal to decimal and then
decimal to binary
• The direct method of octal to binary
conversion
• Let us understand each method in
detail one by one.
Method 1: Octal to decimal
and then decimal to binary
• In this method, we will first convert a
number from octal to decimal (base 10),
and then we will convert that decimal
number to binary. To convert a number
from octal to decimal, we multiply its
digits starting from the right with 8 raised
to exponents starting from 0 and then add
the values. So, the first digit from the right
will be multiplied by 80, which is equal to
1, the second digit will be multiplied by
81 = 8, and so on.
Let us take an example
• Let us take an example of the
number 568. The 8 written as the
base represents that this is a base-8
number. 568 can be converted to base
10 as,
• 568 = 6 × 80 + 5 × 81
• 568 = 6 × 1 + 5 × 8
• = 6 + 40
• = 46
• Hence, 568 = 4610. Now, we will convert 46
which is a base 10 number to its binary
equivalent. To convert decimal to binary,
divide the given number by 2 and note down
the quotient and reminder. Again divide the
Hence, quotient obtained by 2, and note down the
remainder. Repeat this process till you get 0
as the quotient. Write the remainders in order
from right to left. Let us convert 46 10 to
binary.
• Divide 46 by 2 ⇒ 46 ÷ 2 = Quotient - 23,
remainder - 0
• 23 ÷ 2 = Quotient - 11, remainder - 1
• 11 ÷ 2 = Quotient - 5, remainder - 1
• 5 ÷ 2 = Q - 2, R - 1
• 2 ÷ 2 = Q - 1, R - 0
SOLUTION • 1 ÷ 2 = Q - 0, R - 1
• Arrange all the remainders from right to left. We
will get,
• 4610 = 1011102
• Therefore, we have converted an octal number
568 to its binary equivalent 1011102.
Method 2: • Another method, surely an easier and less
complicated one, is to directly convert a
Direct number from octal to binary by referring to
the octal to binary table given above. In this
Method of method, we convert every digit of the given
Octal to octal number to its binary equivalent by
referring to the above chart. For example,
Binary using this method we can directly write 38 as
Conversion 0112, 58 as 1012, etc.
• Let us convert the same number
568 from octal to binary using the
direct method. There are two digits
in this number, 5 and 6. Referring
SOLUTION to the above octal to binary chart:
• 58 → 1012
• 68 → 1102
By combining these two, we will get, 56 8 = 1011102. Observe
the image given below for your reference.
• Example 1: Convert the octal number 728 to
a binary number using the decimal
conversion method.
• Solution: Given octal number 728. To
convert it to a binary number using the
Octal to decimal conversion method, we will first
Binary convert it to a decimal number.
Examples • ⇒ 728 = 2 × 80 + 7 × 81
• ⇒ 728 = 2 × 1 + 7 × 8
• = 2 + 56
• = 5810
• Now, we have to convert 5810 to a binary
number by repeatedly dividing it by 2.
• ⇒ 58 ÷ 2 = Q - 29, R - 0
• 29 ÷ 2 = Q - 14, R - 1
• 14 ÷ 2 = Q - 7, R - 0
SOLUTION • 7 ÷ 2 = Q - 3, R - 1
• 3 ÷ 2 = Q - 1, R - 1
• 1 ÷ 2 = Q - 0, R - 1
• We get, 5810 = 1110102. Therefore, the octal
to binary conversion of the number
728 results in 1110102.
octaltobinaryconversiontable
• Solution: To convert an octal number to
Example binary, we can use the octal to binary table
2: Change the with each of the given digits. The given
octal number number is 358. Referring to the table, we
have,
358 to its binary • 38 = 0112
equivalent • 58 = 1012
using the direct
• By combining these binary bits, we get 358 =
conversion
0111012.
method.
Solution: Let us convert the given number
Example from octal to binary using the direct
conversion method. The given number is 235 8.
3: How to
28 = 0102
convert 38 = 0112
2358 octal to 1.58 = 1012
binary? 2.By combining these binary bits, we get
2358 = 0100111012.
REFERENCES

https://www.cuemath.com/numbers/octal-to
-binary/
https://www.math-drills.com/
numbersense.php
• THANK YOU

You might also like