SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Usha Mary Sharma, Dept of CS& IT, DBCET   1




            NUMBER SYSTEMS

            Continuation of the first lecture …

            ECE-B first semester.



10-Aug-11
The Octal Number System
2


       The base of the octal number system is eight.
       From right to left, the successive positions of the
        octal number are weighted 1, 8, 64, 512, etc
       A list of the first several powers of 8 follows:

        80 = 1    81 = 8                82 = 64     83 = 512
        84 = 4096                             85 = 32768


                     Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Decimal numbers with their octal equivalents:
3




                Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Convert Octal Number to Decimal Number
4




               Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
5


       determine the value of the octal number 16018




                   Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Solution :
6




                 Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
TRY THIS:
7


    Convert the following octal numbers to their decimal
        equivalents:
    (a) 5 3 68         Answer: 35010
    (b)   1 1 6 38     Answer: 62710




                   Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Converting a Decimal Number to an Octal Number

8


     Use the remainder method .
    (1) Divide the decimal number by the base (in the case of
      octal, divide by 8).
    (2) Indicate the remainder to the right.
    (3) Continue dividing into each quotient (and indicating
      the remainder) until the divide operation produces a
      zero quotient.
    (4) The base 8 number is the numeric remainder reading
      from the last division to the first (if you start at the
      bottom, the answer will read from top to bottom).

                   Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Example 1: Convert the decimal number 46510 to its
    octal equivalent:
9




       Solution:

        46510 = 7218




                    Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Example 2: Convert the decimal number
     254810 to its octal equivalent:
10


        Solution:

     254810 = 47648




                     Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
TRY THIS:
11


     Convert the following decimal numbers to their octal
       equivalents:

     (a)   300210                                 Answer: 57628
     (b)   651210                                 Answer: 145608




                    Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
The Hexadecimal Number System
12


      The hexadecimal number system has base 16.
      From right to left, the successive positions of the
       hexadecimal number are weighted 1, 16, 256, 4096,
       65536, etc.
       160 = 1             161 = 16              162 = 256
       163 = 4096          164 = 65536

        The hexadecimal number system uses not only the
         Arabic numerals 0 through 9, but also uses the letters A,
         B, C, D, E, and F.

                      Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Decimal numbers with their hexadecimal
     equivalents:
13




                Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Converting a Hexadecimal Number to a Decimal
     Number
14




     Example 1: Convert the hexadecimal number 20B316
     to its decimal equivalent




                  Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Example 2: Convert the hexadecimal number 12AE516 to its
     decimal equivalent.
15




                    Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
TRY THIS.
16


           Convert the following hexadecimal numbers to their
           decimal equivalents:

     (a)    2 4 3 F16                                 Answer: 927910
     (b)    B E E F16                                 Answer: 4887910




                        Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Converting a Decimal Number to a Hexadecimal
     Number
17

       Use the remainder method.
      the remainder method involves the following four steps:

     (1) Divide the decimal number by the base (in the case of
        hexadecimal, divide by 16).
     (2) Indicate the remainder to the right. If the remainder is
        between 10 and 15, indicate the corresponding hex digit A
        through F.
     (3) Continue dividing into each quotient (and indicating the
        remainder) until the divide operation produces a zero quotient.
     (4) The base 16 number is the numeric remainder reading from
        the last division to the first.
                      Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Example 1: Convert 926310 to its hexadecimal
     equivalent
18




     926310 = 242F16




                 Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Example 2: Convert 425910 to its hexadecimal
     equivalent
19


     425910 = 10A316




                 Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
TRY THIS:
20


         Convert the following decimal numbers to their
          hexadecimal equivalents
         (a) 6949810             Answer: 10F7A16

     (b) 11426710                        Answer: 1BE5B16




                      Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11
Revision:
21




                 Usha Mary Sharma, Dept of CS& IT, DBCET   10-Aug-11

Weitere ähnliche Inhalte

Ähnlich wie Number systems(D.B.C.E.T)

Ähnlich wie Number systems(D.B.C.E.T) (6)

Data representation
Data representationData representation
Data representation
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Pptdec2
Pptdec2Pptdec2
Pptdec2
 
Lecture 1 PPT Number systems & conversions part.pptx
Lecture 1 PPT Number systems & conversions part.pptxLecture 1 PPT Number systems & conversions part.pptx
Lecture 1 PPT Number systems & conversions part.pptx
 
DT-08-Hashing.PPTX
DT-08-Hashing.PPTXDT-08-Hashing.PPTX
DT-08-Hashing.PPTX
 

Kürzlich hochgeladen

The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 

Kürzlich hochgeladen (20)

The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 

Number systems(D.B.C.E.T)

  • 1. Usha Mary Sharma, Dept of CS& IT, DBCET 1 NUMBER SYSTEMS Continuation of the first lecture … ECE-B first semester. 10-Aug-11
  • 2. The Octal Number System 2  The base of the octal number system is eight.  From right to left, the successive positions of the octal number are weighted 1, 8, 64, 512, etc  A list of the first several powers of 8 follows: 80 = 1 81 = 8 82 = 64 83 = 512 84 = 4096 85 = 32768 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 3. Decimal numbers with their octal equivalents: 3 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 4. Convert Octal Number to Decimal Number 4 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 5. 5  determine the value of the octal number 16018 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 6. Solution : 6 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 7. TRY THIS: 7 Convert the following octal numbers to their decimal equivalents: (a) 5 3 68 Answer: 35010 (b) 1 1 6 38 Answer: 62710 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 8. Converting a Decimal Number to an Octal Number 8  Use the remainder method . (1) Divide the decimal number by the base (in the case of octal, divide by 8). (2) Indicate the remainder to the right. (3) Continue dividing into each quotient (and indicating the remainder) until the divide operation produces a zero quotient. (4) The base 8 number is the numeric remainder reading from the last division to the first (if you start at the bottom, the answer will read from top to bottom). Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 9. Example 1: Convert the decimal number 46510 to its octal equivalent: 9  Solution: 46510 = 7218 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 10. Example 2: Convert the decimal number 254810 to its octal equivalent: 10  Solution: 254810 = 47648 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 11. TRY THIS: 11 Convert the following decimal numbers to their octal equivalents: (a) 300210 Answer: 57628 (b) 651210 Answer: 145608 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 12. The Hexadecimal Number System 12  The hexadecimal number system has base 16.  From right to left, the successive positions of the hexadecimal number are weighted 1, 16, 256, 4096, 65536, etc. 160 = 1 161 = 16 162 = 256 163 = 4096 164 = 65536  The hexadecimal number system uses not only the Arabic numerals 0 through 9, but also uses the letters A, B, C, D, E, and F. Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 13. Decimal numbers with their hexadecimal equivalents: 13 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 14. Converting a Hexadecimal Number to a Decimal Number 14 Example 1: Convert the hexadecimal number 20B316 to its decimal equivalent Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 15. Example 2: Convert the hexadecimal number 12AE516 to its decimal equivalent. 15 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 16. TRY THIS. 16 Convert the following hexadecimal numbers to their decimal equivalents: (a) 2 4 3 F16 Answer: 927910 (b) B E E F16 Answer: 4887910 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 17. Converting a Decimal Number to a Hexadecimal Number 17  Use the remainder method.  the remainder method involves the following four steps: (1) Divide the decimal number by the base (in the case of hexadecimal, divide by 16). (2) Indicate the remainder to the right. If the remainder is between 10 and 15, indicate the corresponding hex digit A through F. (3) Continue dividing into each quotient (and indicating the remainder) until the divide operation produces a zero quotient. (4) The base 16 number is the numeric remainder reading from the last division to the first. Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 18. Example 1: Convert 926310 to its hexadecimal equivalent 18 926310 = 242F16 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 19. Example 2: Convert 425910 to its hexadecimal equivalent 19 425910 = 10A316 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 20. TRY THIS: 20  Convert the following decimal numbers to their hexadecimal equivalents (a) 6949810 Answer: 10F7A16 (b) 11426710 Answer: 1BE5B16 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11
  • 21. Revision: 21 Usha Mary Sharma, Dept of CS& IT, DBCET 10-Aug-11