SlideShare una empresa de Scribd logo
1 de 18
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

Más contenido relacionado

Similar a Dec to bin.20

Binary octal
Binary octalBinary octal
Binary octaldrdipo4
 
Introduction to Computer Lesson 6.0
Introduction to Computer Lesson 6.0Introduction to Computer Lesson 6.0
Introduction to Computer Lesson 6.0Von Ryan Sugatan
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system CT Sabariah Salihin
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 
Unit I Homework Assignment In addition to the required reading.docx
Unit I Homework Assignment In addition to the required reading.docxUnit I Homework Assignment In addition to the required reading.docx
Unit I Homework Assignment In addition to the required reading.docxrajahchelsey
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effectstamil arasan
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemBai Haqi
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramodNCP
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_numberNazrul Shah
 

Similar a Dec to bin.20 (20)

Binary octal
Binary octalBinary octal
Binary octal
 
Introduction to Computer Lesson 6.0
Introduction to Computer Lesson 6.0Introduction to Computer Lesson 6.0
Introduction to Computer Lesson 6.0
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
02-binary.pptx
02-binary.pptx02-binary.pptx
02-binary.pptx
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 
Unit I Homework Assignment In addition to the required reading.docx
Unit I Homework Assignment In addition to the required reading.docxUnit I Homework Assignment In addition to the required reading.docx
Unit I Homework Assignment In addition to the required reading.docx
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effects
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering system
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
B sc ii sem unit 2(a) ns
B sc ii sem  unit 2(a) nsB sc ii sem  unit 2(a) ns
B sc ii sem unit 2(a) ns
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramod
 
LCDF3_Chap_01x.pptx
LCDF3_Chap_01x.pptxLCDF3_Chap_01x.pptx
LCDF3_Chap_01x.pptx
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
 
Number system
Number systemNumber system
Number system
 

Más de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Dec to bin.20

  • 1. Conversions of decimal to binary number http://improvec.blogspot.in/ 1
  • 2. 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
  • 3. Recap Various number systems used in digital computer http://improvec.blogspot.in/ 3
  • 4. Conversions from one Number System to other http://improvec.blogspot.in/ 4
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. 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
  • 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 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
  • 11. 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
  • 12. 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
  • 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 base of binary system is a. 10 b. 2 c. 8 d. 16 Answer: b http://improvec.blogspot.in/ 16
  • 17. Quiz: 2. What is the binary equivalent of 10 a. 1000 b. 1011 c. 1010 d. 1111 Answer: c http://improvec.blogspot.in/ 17
  • 18. Quiz: 3. What is the binary equivalent of 125 a. 1111101 b. 1111001 c. 1101101 d. 1111111 Answer: a http://improvec.blogspot.in/ 18