SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Various number system used in digital
computers




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


Number systems

Importance of binary number system




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


What are various number systems used in
computers?
        Binary number system.
        Octal number system.
        Hexadecimal number system.




                http://improvec.blogspot.in/   3
DECIMAL NUMBER
    SYSTEM




   http://improvec.blogspot.in/   4
Decimal number system:

 The number system that we use in our daily life
  is called the decimal number system.

 The decimal number system is a base-10
  system.

 It uses 10 digits, from 0 to 9.


                    http://improvec.blogspot.in/    5
Decimal number system (contd...) :


 Example – (1234)10 subscript 10 denotes decimal
  number.
 The base or radix of a number system is defined
  as the number system uses ten digits.
 The weight of each digit of a decimal number
  depends on its relative position within the
  number.


                  http://improvec.blogspot.in/   6
Weight of each digit of a decimal number:
  6498 = 6000 + 400 + 90 + 8
      = 6*103 + 4*102 + 9*101 + 8*100

 The weight of the 1st digit of the number from
  right hand
side = 1st digit * 100

 The weight of the 2nd digit of the number from
  right hand
side = 2nd digit * 101
                  http://improvec.blogspot.in/     7
Weight of each digit of a decimal number
                  (contd) :

 The weight of the 3rd digit of the number from
  right hand
side = 3rd digit * 102



 The weight of the 4th digit of the number from
  right hand
side = 4th digit * 103
                   http://improvec.blogspot.in/    8
Weight of each digit of a decimal number
                   (contd) :


General expression

The weight of the nth digit of the number from right
  hand side

                           = nth digit * 10n-1

                           = nth digit * (Base)n-1
                     http://improvec.blogspot.in/      9
BINARY NUMBER
    SYSTEM




   http://improvec.blogspot.in/   10
Binary number system:

 Binary number system is used in digital
  computers.

 The base (or radix) of binary system is 2.

 It uses only two digits 0 or 1 and these digits are
  abbreviated as bits.


                   http://improvec.blogspot.in/    11
Binary number system (contd) :


 Example – (11010)2 = (26)10

 The weight of each digit of a binary number
  depends on its relative position within the
  number.




                  http://improvec.blogspot.in/   12
Weight of each bit of a binary number:

  1101 (binary number) = 1*23 + 1*22 + 0*21 + 1*20

                       =8+4+0+1
                       = 13 (decimal number)

 The weight of the 1st bit of the binary number
  from right hand side = 1st bit * 20

 The weight of the 2nd bit of the number from right
  hand
                      http://improvec.blogspot.in/  13
  side = 2nd bit * 21
Weight of each bit of a binary number
                  (contd) :


 The weight of the 3rd bit of the number from right
  hand
side = 3rd bit * 22



 The weight of the 4th bit of the number from right
  hand
side = 4th bit * 23
                   http://improvec.blogspot.in/        14
Weight of each bit of a binary number
                 (contd) :
General expression

 The weight of the nth bit of the number from
 right hand side
                    = nth bit * 2n-1

                         = nth bit * (Base)n-1

                http://improvec.blogspot.in/     15
Binary equivalent of decimal numbers:
Decimal No.   Binary equal            Decimal No.   Binary equal
0             0                       11            1011
1             01                      12            1100
2             10                      13            1101
3             11                      14            1110
4             100                     15            1111
5             101                     16            10000
6             110                     31            11111
7             111                     32            100000
8             1000                    63            111111
9             1001                    64            1000000
10            1010                    128           10000000
                     http://improvec.blogspot.in/              16
OCTAL NUMBER
   SYSTEM




   http://improvec.blogspot.in/   17
Octal number system:

 Octal means 8.
 The base of octal number system is 8.
 It uses eight digits 0,1,2,3,4,5,6, and 7.
 The decimal number 8 is represented by 10, 9
  by 11, 10 by 12 and so in octal number system.




                    http://improvec.blogspot.in/   18
Octal number system (contd) :

 As 8 = 23, each octal digit is represented by a
  group of three binary bits.

 This system was issued to provide a shorthand
  way to deal with long strings of 0s and 1s
  created in binary.

 Example – (2056)8 = (1070)10


                   http://improvec.blogspot.in/     19
Binary representation of octal digits:
   Decimal        Octal number

       0            0
       1            1
       2            2
       3            3
       4            4
       5            5
       6            6
       7            7
       8            10
      10            12
      15            17

             http://improvec.blogspot.in/   20
Conversion of octal to binary:
To convert a binary number to octal.

 Group binary digits in group of three.

 Convert each group to its equivalent octal digit.

 Example – (101110)8= 56


            101 110
              5    6
                   http://improvec.blogspot.in/       21
Hexadecimal number system


 Hexadecimal means 16(6+10)

 It contains 16 symbols

 Its base is 16.




                    http://improvec.blogspot.in/   22
Hexadecimal number system (contd)


 The first ten digits are represented by digits 0 to
  9 and remaining six by the letters A through F.

 Each hexadecimal digit is represented by four
  binary bits.

 Example – (A3)16 = (1010 0011)2

                   http://improvec.blogspot.in/     23
EQUIVALENT VALUES OF DIFFERENT SYSTEMS
DECIMAL     BINARY                  OCTAL           HEXADECIMAL
0           0000                    0               0
1           0001                    1               1
2           0010                    2               2
3           0011                    3               3
4           0100                    4               4
5           0101                    5               5
6           0110                    6               6
7           0111                    7               7
8           1000                    10              8
9           1001                    11              9
10          1010                    12              A
11          1011                    13              B
12          1100                    14              C
13          1101                    15              D
14          1110                    16              E
15          1111                    17              F
16          10000                   20              10
                     http://improvec.blogspot.in/            24
Summary:

In this class, you have learnt about

            Various number systems used in
             digital computer




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

1. What is meant by base of a number system ?

2. What is the value of the base for decimal,
   binary, octal and hexadecimal number systems?

3. What are octal and hexadecimal number
   systems ?




                 http://improvec.blogspot.in/   26
Quiz
1. The decimal number system is a
  a. base 2
  b. base 16
  c. base 10
Answer: c




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


2. The base of octal number system is
  a. 8
  b. 16
  c. 2
Answer: a




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

3. The first ten digits in hexa decimal system are
  represented by digits 0 to 9 and remaining six
  by the letters
  a. 10 to 16
  b. A to F
  c. A1 to A6
Answer: b




                 http://improvec.blogspot.in/        29

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number system
Number systemNumber system
Number system
 
Binary numbers-7-12-2011
Binary numbers-7-12-2011Binary numbers-7-12-2011
Binary numbers-7-12-2011
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Introducing to number system
Introducing to number systemIntroducing to number system
Introducing to number system
 
Number system
Number systemNumber system
Number system
 
Number systems
Number systemsNumber systems
Number systems
 
Binary octal
Binary octalBinary octal
Binary octal
 
Cmp104 lec 2 number system
Cmp104 lec 2 number systemCmp104 lec 2 number system
Cmp104 lec 2 number system
 
Number systems
Number systemsNumber systems
Number systems
 
Number system....
Number system....Number system....
Number system....
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Number system
Number systemNumber system
Number system
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Number system
Number system Number system
Number system
 
Number system
Number systemNumber system
Number system
 
Per6dm0910
Per6dm0910Per6dm0910
Per6dm0910
 

Ähnlich wie Various num systems used in digital comp.18to19

Ähnlich wie Various num systems used in digital comp.18to19 (20)

Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
01.number systems
01.number systems01.number systems
01.number systems
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
5871320.ppt
5871320.ppt5871320.ppt
5871320.ppt
 
Lec 02
Lec 02Lec 02
Lec 02
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
Unit 4.docx
Unit 4.docxUnit 4.docx
Unit 4.docx
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
01.number systems
01.number systems01.number systems
01.number systems
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Number system
Number systemNumber system
Number system
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 

Mehr von 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
 

Various num systems used in digital comp.18to19

  • 1. Various number system used in digital computers http://improvec.blogspot.in/ 1
  • 2. Recap: Number systems Importance of binary number system http://improvec.blogspot.in/ 2
  • 3. Prerequisite What are various number systems used in computers? Binary number system. Octal number system. Hexadecimal number system. http://improvec.blogspot.in/ 3
  • 4. DECIMAL NUMBER SYSTEM http://improvec.blogspot.in/ 4
  • 5. Decimal number system:  The number system that we use in our daily life is called the decimal number system.  The decimal number system is a base-10 system.  It uses 10 digits, from 0 to 9. http://improvec.blogspot.in/ 5
  • 6. Decimal number system (contd...) :  Example – (1234)10 subscript 10 denotes decimal number.  The base or radix of a number system is defined as the number system uses ten digits.  The weight of each digit of a decimal number depends on its relative position within the number. http://improvec.blogspot.in/ 6
  • 7. Weight of each digit of a decimal number: 6498 = 6000 + 400 + 90 + 8 = 6*103 + 4*102 + 9*101 + 8*100  The weight of the 1st digit of the number from right hand side = 1st digit * 100  The weight of the 2nd digit of the number from right hand side = 2nd digit * 101 http://improvec.blogspot.in/ 7
  • 8. Weight of each digit of a decimal number (contd) :  The weight of the 3rd digit of the number from right hand side = 3rd digit * 102  The weight of the 4th digit of the number from right hand side = 4th digit * 103 http://improvec.blogspot.in/ 8
  • 9. Weight of each digit of a decimal number (contd) : General expression The weight of the nth digit of the number from right hand side = nth digit * 10n-1 = nth digit * (Base)n-1 http://improvec.blogspot.in/ 9
  • 10. BINARY NUMBER SYSTEM http://improvec.blogspot.in/ 10
  • 11. Binary number system:  Binary number system is used in digital computers.  The base (or radix) of binary system is 2.  It uses only two digits 0 or 1 and these digits are abbreviated as bits. http://improvec.blogspot.in/ 11
  • 12. Binary number system (contd) :  Example – (11010)2 = (26)10  The weight of each digit of a binary number depends on its relative position within the number. http://improvec.blogspot.in/ 12
  • 13. Weight of each bit of a binary number: 1101 (binary number) = 1*23 + 1*22 + 0*21 + 1*20 =8+4+0+1 = 13 (decimal number)  The weight of the 1st bit of the binary number from right hand side = 1st bit * 20  The weight of the 2nd bit of the number from right hand http://improvec.blogspot.in/ 13 side = 2nd bit * 21
  • 14. Weight of each bit of a binary number (contd) :  The weight of the 3rd bit of the number from right hand side = 3rd bit * 22  The weight of the 4th bit of the number from right hand side = 4th bit * 23 http://improvec.blogspot.in/ 14
  • 15. Weight of each bit of a binary number (contd) : General expression The weight of the nth bit of the number from right hand side = nth bit * 2n-1 = nth bit * (Base)n-1 http://improvec.blogspot.in/ 15
  • 16. Binary equivalent of decimal numbers: Decimal No. Binary equal Decimal No. Binary equal 0 0 11 1011 1 01 12 1100 2 10 13 1101 3 11 14 1110 4 100 15 1111 5 101 16 10000 6 110 31 11111 7 111 32 100000 8 1000 63 111111 9 1001 64 1000000 10 1010 128 10000000 http://improvec.blogspot.in/ 16
  • 17. OCTAL NUMBER SYSTEM http://improvec.blogspot.in/ 17
  • 18. Octal number system:  Octal means 8.  The base of octal number system is 8.  It uses eight digits 0,1,2,3,4,5,6, and 7.  The decimal number 8 is represented by 10, 9 by 11, 10 by 12 and so in octal number system. http://improvec.blogspot.in/ 18
  • 19. Octal number system (contd) :  As 8 = 23, each octal digit is represented by a group of three binary bits.  This system was issued to provide a shorthand way to deal with long strings of 0s and 1s created in binary.  Example – (2056)8 = (1070)10 http://improvec.blogspot.in/ 19
  • 20. Binary representation of octal digits: Decimal Octal number 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 10 10 12 15 17 http://improvec.blogspot.in/ 20
  • 21. Conversion of octal to binary: To convert a binary number to octal.  Group binary digits in group of three.  Convert each group to its equivalent octal digit.  Example – (101110)8= 56 101 110 5 6 http://improvec.blogspot.in/ 21
  • 22. Hexadecimal number system  Hexadecimal means 16(6+10)  It contains 16 symbols  Its base is 16. http://improvec.blogspot.in/ 22
  • 23. Hexadecimal number system (contd)  The first ten digits are represented by digits 0 to 9 and remaining six by the letters A through F.  Each hexadecimal digit is represented by four binary bits.  Example – (A3)16 = (1010 0011)2 http://improvec.blogspot.in/ 23
  • 24. EQUIVALENT VALUES OF DIFFERENT SYSTEMS DECIMAL BINARY OCTAL HEXADECIMAL 0 0000 0 0 1 0001 1 1 2 0010 2 2 3 0011 3 3 4 0100 4 4 5 0101 5 5 6 0110 6 6 7 0111 7 7 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F 16 10000 20 10 http://improvec.blogspot.in/ 24
  • 25. Summary: In this class, you have learnt about Various number systems used in digital computer http://improvec.blogspot.in/ 25
  • 26. Frequently Asked Questions 1. What is meant by base of a number system ? 2. What is the value of the base for decimal, binary, octal and hexadecimal number systems? 3. What are octal and hexadecimal number systems ? http://improvec.blogspot.in/ 26
  • 27. Quiz 1. The decimal number system is a a. base 2 b. base 16 c. base 10 Answer: c http://improvec.blogspot.in/ 27
  • 28. Quiz 2. The base of octal number system is a. 8 b. 16 c. 2 Answer: a http://improvec.blogspot.in/ 28
  • 29. Quiz 3. The first ten digits in hexa decimal system are represented by digits 0 to 9 and remaining six by the letters a. 10 to 16 b. A to F c. A1 to A6 Answer: b http://improvec.blogspot.in/ 29