Skip to main content

CONVERSION BEETWEEN OCTAL AND BINARY BY TWO METHODS

Conversion Octal To Binary:
We can Convert Octal number into binary no by two methods:-
1. Convert Octal to Decimal and again Convert Decimal into Binary.
Ex-  (256)8=(?)2
Sol.  Convert it in Decimal
         (256)8
        =2x82 + 5x81 + 6 x 80
        =2x64+5x8+6x1
        =128+40+6
        = (174)10
          Now Convert it into Binary,
2
174
R
2
87
0
2
43
1
2
21
1
2
10
1
2
5
0
2
2
1

1
0


(174)10=(10101110)2
2. Convert to Octal to Binary with the help of list.
Determine the value of each digit according to the geven list:
0=000
1=001
2=010
3=011
4=100
5=101
6=110
7=111
Steps:-
  • Write  the value of each Digit according the list.
  • The formed number is equivalent to Binary.
Ex-  (256)8=(?)2
Sol.  Convert it in Binary with the help of list.
         (256)8=(010101110)2
                      =(10101110)2
Conversion Binary To Octal:
We can Convert binary number into Octal no by two methods:-
1. Convert Binary to Decimal and again Convert Decimal into Octal.
Ex-  
(10101110)2=
= 1x27 + 0x26 +1x25 +0x24 + 1x23 + 1x22 + 1x21 + 0x20
=1x128+0x64 + 1x32 + 0x16 + 1x8 + 1x4 + 1x2 + 0x1
= 128+32+8+4+2
= (174)10
          Now Convert it into Octal,

8
174
R
8
21
6

2
5

(174)10=(256)
8

2. Convert to Binary to Octal with the help of list.
Determine the value of each digit according to the geven list:
0=000
1=001
2=010
3=011
4=100
5=101
6=110
7=111
Steps:-
  • Write  the value of each Digit according the list.
  • The formed number is equivalent to Binary.
Ex-  (10101110)2=(?)8
Sol.  Convert it in Octal with the help of list.
         (10101110)2
        =10  101  110
        =010  101  110 (Add '0' to make three digit)
        = (256)8

Comments

  1. Plese give the steps of binary to hexa decimal and hexa decimal to binary an 2s complement

    ReplyDelete
  2. ya sure. Tqq Dear. Sry for late responce. I will update notes as soon as possible. TQ

    ReplyDelete

Post a Comment

Popular posts from this blog

Computer Generations

 Computer Generations   Computers have evolved over time through different generations, each marked by significant technological advancements and changes in design and architecture. These generations are often categorized based on the underlying hardware and the key developments that distinguish one Generation from another. Let's explore the main computer generations: First Generation Computers    The First Generation of computers refers to the initial period of electronic computing, characterized by the use of vacuum tubes as the primary electronic component. This Generation spans the 1940s and 1950s and is marked by groundbreaking developments in computer technology.  Examples of First-Generation Computers:  o ENIAC (Electronic Numerical Integrator and Computer): Completed in 1945, ENIAC was one of the first electronic general-purpose computers. It was designed to calculate artillery firing tables for the United States Army during World War ...

Programming in "C"

 Introduction   C is a general-purpose programming language that was developed in the early 1970s by Dennis Ritchie at Bell Laboratories. It has since become one of the most widely used programming languages and has influenced the development of many other languages, including C++, Java, and C#. C is known for its efficiency, flexibility, and low-level programming capabilities. It is commonly used for system programming, embedded systems, and developing operating systems. C is also a popular choice for developing applications that require high performance, such as game engines and scientific simulations.   Here are some key features and concepts of C programming:   Syntax: C has a relatively simple syntax compared to some other programming languages. It uses a combination of keywords, variables, data types, operators, and control structures to write programs.  Variables and Data Types: You declare variables to store data in C. Various d...

ARITHMETIC OPERATIONS ON BINARY NUMBER

Binary arithmetic is simpler to learn because binary number system deals with only two digits - 0 and 1. Binary number perform all arithmetic operation such as Addition, Substraction, Multiplication and compliment as in decimal number system. Binary Addition The addition table for binary arithmetic consist of only the following four entries: 0+0=0 0+1=1 1+0=1 1+1=0 , plus a carry of 1 to the next column.     1011        + 1100    10111     1100    + 1100     11000 Binary Substraction There are three ways to do substraction between binary numbers:- 1. Simple Substraction 2. Substraction using 1's Complement 3. Substraction using 2's Complement Simple Substraction: The complete table of binary substraction is as follows: 0-0=0 0-1=1, borrow 1 from next column 1-0=1 1-1=0    1101 - 0101   1000     1001   - 0111    0...