SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
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

Mais conteúdo relacionado

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

Semelhante 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

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

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