0% found this document useful (0 votes)
14 views16 pages

convert octal to binary

The document explains the process of converting octal numbers (base 8) to binary numbers (base 2) through decimal conversion. It details the steps for converting octal to decimal and then decimal to binary, along with examples for clarity. Additionally, it covers related conversions between hexadecimal, decimal, and binary systems.

Uploaded by

hkdalugama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views16 pages

convert octal to binary

The document explains the process of converting octal numbers (base 8) to binary numbers (base 2) through decimal conversion. It details the steps for converting octal to decimal and then decimal to binary, along with examples for clarity. Additionally, it covers related conversions between hexadecimal, decimal, and binary systems.

Uploaded by

hkdalugama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Convert Octal to Binary

In order to number, we have to follow a few steps. Octal numbers have base 8 and binary
numbers have base 2. We can convert the octal number into decimal and then convert the
decimal number into its equivalent binary number. Also, we can remember the octal to the binary
equivalent table to do the quick conversion. Before we learn the conversion method, let us learn
about both the number systems.

Octal Numbers: Octal numbers are the numbers which have base 8. It is represented as N8. It
uses the digits 0,1, 2, 3, 4, 5, 6 and 7 to represent the numbers in this number system. For
example:

 112 8

 1008 8

 789 , etc.
8

Binary Numbers: Binary numbers have base 2 and are represented by two digits, i.e. 0 and 1.
They are the combination of binary digits, 0’s and 1’s. These numbers have wide application in
the computer system to store data. For example:

 0011 2

 111101 2

 101010 2

How to Convert Octal To Binary?


Conversion of octal to binary number is a two-step process. First, we need to convert the given
octal number into its equivalent decimal number and then convert the decimal into binary. Let us
learn the complete steps here.

Octal to Decimal Conversion


 Count the number of digits present in the given number. Let the number of digits be ‘n’.
 Now multiply each digit of the number with 8 , when the digit is in the nth position from
n-1

the right end of the number. If the number has a decimal part, multiply each digit in the
decimal part by `8 ` when the digit is in the m position from the decimal point.
-m th

 Add all the terms after multiplication.


 The obtained value is the equivalent decimal number.

Decimal to Binary Conversion


 Take the above-produced decimal number and divide it by 2.
 Note down the remainder.
 Continue the above two steps for the quotient till the quotient is zero.
 Write the remainder in the reverse order.
 The received number is the equivalent binary number for the given octal number.
Also, see:

 Number System Conversion


 Octal Number System
 Convert Decimal to Octal
 Decimal to Hex conversion

Solved Examples
Q.1: Convert 418 to a binary number.

Solution: Given number is 418

418 = (4 * 81) + (1 * 80)

=4*8+1*1

= 32+1

= 33(Decimal number)

Now convert this decimal number into its equivalent binary number. Let us draw a table to show
the conversion of decimal to binary as given below.

Decimal Number divided by 2 Quotient Remainder


33 divided by 2 16 1

16 divided by 2 8 0

8 divided by 2 4 0

4 divided by 2 2 0

2 divided by 2 1 0

1 divided by 2 0 1

Therefore, the equivalent binary number is 1000012.

Hence, 418 = 1000012

Q.2: Convert 108 to a binary number.

Solution: Given number is 108

108 = (1 * 81) + (0 * 80)

=1*8+0*1

=8+0

= 8 (Decimal number)

Now convert this decimal number into its equivalent binary number. Let us draw a table to show
the conversion of decimal to binary as given below.

Decimal Number divided by 2 Quotient Remainder

8 divided by 2 4 0
4 divided by 2 2 0

2 divided by 2 1 0

1 divided by 2 0 1

Therefore, the equivalent binary number is 10002.

Hence, 108 = 10002

Hexa To Binary Examples


Question 1: Convert A2B16 to an equivalent binary number.

Solution: Given hexadecimal number = A2B16

First, convert the given hexadecimal to the equivalent decimal number.

A2B16 = (A × 162) + (2 × 161) + (B × 160)

= (A × 256) + (2 × 16) + (B × 1)

= (10 ×256) + 32 + 11

= 2560 + 43

= 2603(Decimal number)

Now we have to convert 260310 to binary


The binary number obtained is 1010001010112

Hence, A2B16 = 1010001010112

Question 2: Convert E16 to an equivalent binary number.

Solution: Given, a hexadecimal number is E.

First, convert the given hexadecimal to the equivalent decimal number.

E16 = E × 160

=E×1

=E

=14 (Decimal number)

Now we have to convert 1410 to binary number.

The binary number obtained is 11102


Hence, E16 = 11102

Question 3: Convert 3016 to an equivalent binary number.

Solution: Given the hexadecimal number is 30

First, convert the given hexadecimal to the equivalent decimal number.

3016 = (3 × 161) + (0 × 160)

= 48 + 0

= 48(Decimal number)

Now we have to convert 4810 to binary.

Therefore,

The binary number is 1100002

Hence, 3016 = 1100002

Octal to Decimal
To convert an octal number to a decimal number we need to multiply each
digit of the given octal with the reducing power of 8.

Let us learn here, the conversion of Octal number to Decimal Number or


base 8 to base 10.

Examples on Octal to Decimal


Example 1: Suppose 2158 is an octal number, then it’s decimal form will be,
2158 = 2 × 82 + 1 × 81 + 5 × 80

= 2 × 64+ 1 × 8 + 5 × 1 = 128 + 8 + 5

= 14110

Example 2: Let 125 is an octal number denoted by 1258. Find the decimal
number.

1258 = 1× 82 + 2 × 81 + 5 × 80

= 1 × 64 + 2 × 8 + 5 × 1 = 64+16+5

=8510

Binary To Octal Number


A binary number can be converted into an octal number, with the help of the
below-given table.

Octal Number Equivalent Binary Number

0 0

1 1

2 10

3 11

4 100

5 101

6 110

7 111
Example on Binary to Octal
Example: Convert (100010)2 to an octal number.

Solution: With the help of the table we can write,

100→4

and 010→2

Therefore, (100010)2 = 42

Similarly, we can convert an octal number to a binary number with the help
of the table.

Octal to Hexadecimal Number


Hexadecimal numbers consist of numbers and alphabets. It is represented
with base 16. The numbers from 0-9 are represented in the usual form, but
from 10 to 15, it is denoted as A, B, C, D, E, F. Conversion of the octal
number to hexadecimal requires two steps.

 First, convert octal numbers to decimal numbers.


 Then, convert decimal numbers to hexadecimal numbers.

Example

Let us understand with the help of an example. We will take the same
example, where we have converted the octal numbers to decimal, such as;

(55)8 = (45)10

Now, convert (45)10 into a hexadecimal number by dividing 45 by 16 until you


get a remainder less than 16.
Therefore, we can write, (45)10 = (2D)16

Or (55)8 = (2D)16

Conversion from Hex to Decimal


As we know, number systems can be converted from one base to another.
Thus, we can convert hexadecimal numbers to decimal easily. This number
system conversion can be done as explained in the example given below:

Example:

Convert 7CF (hex) to decimal.

Solution:

Given hexadecimal number is 7CF.

In hexadecimal system,

7=7

C = 12

F = 15

To convert this into a decimal number system, multiply each digit with the
powers of 16 starting from units place of the number.

7CF = (7 × 162) + (12 × 161) + (15 × 160)

= (7 × 256) + (12 × 16) + (15 × 1)

= 1792 + 192 + 15

= 1999

From this, the rule can be defined for the conversion from hex numbers to
decimal numbers.

Suppose below is the hex number with n digits:


dn-1 … d3 d2 d1 d0

Multiply each digit of the hex number with its corresponding powers of 16
and add them such as:

dn-1 × 16n-1 + … + d3 × 163 + d2 × 162 + d1 × 161 + d0 × 160

Thus, the resultant number will be taken as base 10 or decimal number


system.

dn-1 … d3 d2 d1 d0 (hex) = dn-1 × 16n-1 + … + d3 × 163 + d2 × 162 + d1 × 161 +


d0 × 160 (decimal)

Hex to Decimal Converter


There is a tool available to convert the numbers from hexadecimal to
decimal number system.

Click here for a quick hexadecimal conversion to decimal.

Hex to Decimal Table


The conversion table for the numbers from hexadecimal to decimal is given
below:

Hexadecimal Decimal (Equivalent Value)

0 0

1 1

2 2

3 3
4 4

5 5

6 6

7 7

8 8

9 9

A 10

B 11

C 12

D 13

E 14

F 15

This table will help in representing the digits and letters individually in the
large numbers in base 16 system as explained above.

Also, learn about decimal to hex conversion here.

Read more:

 Number system
 Hexadecimal to binary conversion
 Hexadecimal to octal conversion
Solved Examples
Let us have a look at the examples of conversion of numbers from
hexadecimal (base 16) to the base 10 number system, with detailed
explanations.

Example 1:

Convert (1DA6)16 to decimal.

Solution:

(1DA6)16

Here,

1=1

D = 13

A = 10

6=6

Thus,

(1DA6)16 = (1 × 163) + (13 × 162) + (10 × 161) + (6 × 160)

= (1 × 4096) + (13 × 256) + (10 × 16) + (6 × 1)

= 4096 + 3328 + 160 + 6

= 7590

Therefore, (1DA6)16 = (7590)10

Example 2:

Convert (E8B)16 to decimal system.

Solution:
(E8B)16

Here,

E = 14

8=8

B = 11

Thus,

(E8B)16 = (14 × 162) + (8 × 161) + (11 × 160)

= (14 × 256) + (8 × 16) + (11 × 1)

= 3584 + 128 + 11

= 3723

Therefore, (E8B)16 = (3723)10

Stay tuned with BYJU’S – The Learning App and download the app to learn all
Maths-related concepts easily by exploring more videos.

Frequently Asked Questions on Hex to


Decimal
Q1
What is a hexadecimal number system?
The hexadecimal number system uses sixteen digits, such as 0,1, 2, 3, 4, 5,
6, 7, 8, 9 and A, B, C, D, E, F with the base as 16.
Q2
What is a decimal number system?
The decimal number system uses ten digits, such as 0, 1, 2, 3, 4, 5, 6, 7, 8
and 9 with the base as 10.
Q3
How to convert the hexadecimal number system to the
decimal number system?
To convert the hexadecimal number system to the decimal number system,
follow the below steps:
Step 1: Multiply each digit with the powers of 16 starting from the units
place of the number.
Step 2: Simplify each of the products and add them.
Q4
Convert 7CA (hex) to decimal.
We know that 7 = 7, C = 12 and A = 10.
Therefore (7CA)16 = (7 × 162) + (12 × 161) + (10 × 160)
(7CA)16 = (7 × 256) + (12 × 16) + (10 × 1)
(7CA)16 = 1792+192+10
(7CA)16 = (1994)10
Hence, 7CA (hex) to decimal is 1994.
Q5
Convert 5BC (hex) to decimal.
We know that 5 = 5, B = 11 and C = 12.
Therefore (5BC)16 = (5 × 162) + (11 × 161) + (12 × 160)
(5BC)16 = (5 × 256) + (11 × 16) + (12 × 1)
(5BC)16 = 1280+176+12
(5BC)16 = (1468)10
Hence, 5BC (hex) to decimal is 1468.

What is Binary to Hex Conversion?


A binary number has base 2 and consist of only two digits, that are 0 and 1. It has a major use in
computer applications.

Hexadecimal numbers are represented by base 16. It uses 0 to 9 digits and for higher numbers, it
is represented by English alphabets such as A,B,C,D,E and F.

To convert binary number to hexadecimal is an easy method. We have to group the given binary
number in pair of 4 and then find the equivalent hexadecimal number from the below table.
Binary Hex

0000 0

0001 1

0010 2

0011 3

0100 4

0101 5

0110 6

0111 7

1000 8

1001 9

1010 A

1011 B
1100 C

1101 D

1110 E

1111 F

Example: Convert 10010012 into a hexadecimal number.

Solution: 10010012

= 0100 1001

= 4916

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy