SlideShare a Scribd company logo
1 of 21
Download to read 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

More Related Content

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

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

Recently uploaded

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
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
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
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
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 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