SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
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

Más contenido relacionado

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

Similar a 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
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

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