Conversions of decimal to binary number




                      http://improvec.blogspot.in/   1
Objective

On completion of this period, you would be
able to know:


   Conversion of a decimal number to
    equivalent binary




             http://improvec.blogspot.in/    2
Recap


Various number systems used in
 digital computer




      http://improvec.blogspot.in/   3
Conversions from one
Number System to other




      http://improvec.blogspot.in/   4
Conversion from decimal to binary


  The integer and fractional parts of the decimal
  number are dealt separately.

 The decimal number is divided by 2
  successively.




                  http://improvec.blogspot.in/      5
Conversion of decimal to binary

 The quotient and remainder are noted down at
  each stage.

 The present quotient is again divided by 2 and
  repeat the above step.

 This process is repeated until the quotient
  becomes 0.


                   http://improvec.blogspot.in/    6
Conversion from decimal to binary
Integer part:

 Divide the integer part of the given decimal
  number repeatedly by 2.

 And write down the remainder after each division.

 The remainders are then taken in reverse order
  (bottom to top) to form binary equivalent to the
  number

                  http://improvec.blogspot.in/   7
Fractional part:

 The fractional part of the given decimal
  number is multiplied repeatedly by 2, each
  time recording the carry (integer part).

 The integers are then taken in forward order
  (top to bottom) to form the binary equivalent of
  the number.



                   http://improvec.blogspot.in/      8
Fractional part (contd) :

 This process is continued until the fraction
  becomes zero
                          (or)
  until sufficient accuracy is obtained.




                   http://improvec.blogspot.in/   9
Convert the decimal number 125 to binary.
       division
        125     remainder
   2     62       1
   2     23       0
   2    15        1
   2     7        1
   2      3       1
   2     1        1
          0       1

  Thus (125)10 = (1111101)2

                 http://improvec.blogspot.in/   10
Convert the decimal number 0.4375 to
                binary.
   Multiplication         Product               Integral part
   0.4375*2               0.8750                0
   0.8750*2               1.75                  1
   0.75*2                 1.50                  1
   0.5*2                  1.00                  1

Taking the integers parts in the forward (top to
bottom) gives the binary fraction 0.0111.

   Thus (0.4375)10= (0.0111)2
                 http://improvec.blogspot.in/                   11
Convert the decimal number 17.35 to binary.
       Division   Remainders
       2 17
       2 8        1
       2 4        0
       2 2        0
       2 1        0
       2 0        1




                  http://improvec.blogspot.in/   12
Fractional part:

Multiplication               Product             Integral part
   0.35*2                        0.70                     0
   0.70*2                        1.40                     1
   0.40*2                        0.80                     0
   0.80*2                        1.60                     1
   0.60*2                        1.20                     1
   0.20*2                        0.40                     0

      Thus (17.35)10= (10001.010110.......)2
                  http://improvec.blogspot.in/               13
Summary

In this class, we have learnt about

           Conversion from decimal numbering
            system to binary numbering system




                   http://improvec.blogspot.in/   14
Frequently Asked Questions

1. Explain the procedure to convert a decimal
   number into binary number?

2. Convert the decimal real number 12.625 8 into
   equivalent binary real number?




                  http://improvec.blogspot.in/   15
Quiz:

1. The base of binary system is
  a. 10
  b. 2
  c. 8
  d. 16
Answer: b



                   http://improvec.blogspot.in/   16
Quiz:
2. What is the binary equivalent of 10
  a. 1000
  b. 1011
  c. 1010
  d. 1111
Answer: c




                    http://improvec.blogspot.in/   17
Quiz:
3. What is the binary equivalent of 125
  a. 1111101
  b. 1111001
  c. 1101101
  d. 1111111
Answer: a




                    http://improvec.blogspot.in/   18

Dec to bin.20

  • 1.
    Conversions of decimalto binary number http://improvec.blogspot.in/ 1
  • 2.
    Objective On completion ofthis period, you would be able to know: Conversion of a decimal number to equivalent binary http://improvec.blogspot.in/ 2
  • 3.
    Recap Various number systemsused in digital computer http://improvec.blogspot.in/ 3
  • 4.
    Conversions from one NumberSystem to other http://improvec.blogspot.in/ 4
  • 5.
    Conversion from decimalto binary The integer and fractional parts of the decimal number are dealt separately.  The decimal number is divided by 2 successively. http://improvec.blogspot.in/ 5
  • 6.
    Conversion of decimalto binary  The quotient and remainder are noted down at each stage.  The present quotient is again divided by 2 and repeat the above step.  This process is repeated until the quotient becomes 0. http://improvec.blogspot.in/ 6
  • 7.
    Conversion from decimalto binary Integer part:  Divide the integer part of the given decimal number repeatedly by 2.  And write down the remainder after each division.  The remainders are then taken in reverse order (bottom to top) to form binary equivalent to the number http://improvec.blogspot.in/ 7
  • 8.
    Fractional part:  Thefractional part of the given decimal number is multiplied repeatedly by 2, each time recording the carry (integer part).  The integers are then taken in forward order (top to bottom) to form the binary equivalent of the number. http://improvec.blogspot.in/ 8
  • 9.
    Fractional part (contd):  This process is continued until the fraction becomes zero (or) until sufficient accuracy is obtained. http://improvec.blogspot.in/ 9
  • 10.
    Convert the decimalnumber 125 to binary. division 125 remainder 2 62 1 2 23 0 2 15 1 2 7 1 2 3 1 2 1 1 0 1 Thus (125)10 = (1111101)2 http://improvec.blogspot.in/ 10
  • 11.
    Convert the decimalnumber 0.4375 to binary. Multiplication Product Integral part 0.4375*2 0.8750 0 0.8750*2 1.75 1 0.75*2 1.50 1 0.5*2 1.00 1 Taking the integers parts in the forward (top to bottom) gives the binary fraction 0.0111. Thus (0.4375)10= (0.0111)2 http://improvec.blogspot.in/ 11
  • 12.
    Convert the decimalnumber 17.35 to binary. Division Remainders 2 17 2 8 1 2 4 0 2 2 0 2 1 0 2 0 1 http://improvec.blogspot.in/ 12
  • 13.
    Fractional part: Multiplication Product Integral part 0.35*2 0.70 0 0.70*2 1.40 1 0.40*2 0.80 0 0.80*2 1.60 1 0.60*2 1.20 1 0.20*2 0.40 0 Thus (17.35)10= (10001.010110.......)2 http://improvec.blogspot.in/ 13
  • 14.
    Summary In this class,we have learnt about Conversion from decimal numbering system to binary numbering system http://improvec.blogspot.in/ 14
  • 15.
    Frequently Asked Questions 1.Explain the procedure to convert a decimal number into binary number? 2. Convert the decimal real number 12.625 8 into equivalent binary real number? http://improvec.blogspot.in/ 15
  • 16.
    Quiz: 1. The baseof binary system is a. 10 b. 2 c. 8 d. 16 Answer: b http://improvec.blogspot.in/ 16
  • 17.
    Quiz: 2. What isthe binary equivalent of 10 a. 1000 b. 1011 c. 1010 d. 1111 Answer: c http://improvec.blogspot.in/ 17
  • 18.
    Quiz: 3. What isthe binary equivalent of 125 a. 1111101 b. 1111001 c. 1101101 d. 1111111 Answer: a http://improvec.blogspot.in/ 18