SlideShare ist ein Scribd-Unternehmen logo
1 von 12
DATA REPRESENTATION BY-                            Ravi Sharma
Binary number system- [ 0and 1 ]                                                        Radix-2 , e.g.-(101101)2 Decimal number system- [ 0 to 9 ]              Radix-10 , e.g.-(243)10 Octal number system- [ 0 to 7 ]                                       Radix-8 , e.g.-(736.4)8 Hexadecimal - [ 0 to 9 and A to F ]    Radix-16, e.g.-(F3)16 NUMBER SYSTEMS:
Conversion to decimal- A number expressed in base r can be converted to its decimal equivalent by multiplying each coefficient by corresponding power of r and adding . The following is an example of octal to decimal conversion: Conversion
Conversion from decimal to ‘r’ :      Conversion of decimal integer into a base r is done by successive divisions by r and accumulation of the remainders . The conversion of fraction is done by successive multiplication by r and accumulation of integer so obtained.
Conversion from and to binary , octal , hexadecimal- Since 23=8 and 24=16, each octal digits corresponds to three and each hexadecimal corresponds to 4 binary digits . The conversion from binary to octal and hexadecimal is done by partitioning the binary no. into groups of three and four bits respectively .
(r-1)’s  -     - 9’s complement :  It follows that the 9’s complement of a decimal no. is obtained by subtracting each digit from 9.       e.g.-  9’s complement of  546700  is   999999-546700=453299      -1’s complement: The 1’s complement of a binary no. is obtained by subtracting each digit by 1.     e.g.- 1’s complement of 1011001 is 0100110. Complements
( r’s ) – -10’s complement :      10’s complement of a decimal number is obtained by adding 1 to the 9’s complement value.      e.g.- 10’s complement of 2389 is 7610+1=7611. -2’s complement :  2’s complement of binary number is obtained by adding 1 to the 1’s complement. e.g. – 2’s complement of 101100 is 010011+1=010100.
Subtraction of unsigned numbers
Signed Numbers
An overflow condition can be detected by observing the carry into the sign bit position and carry out of the sign bit position . If these two carries are not equal an overflow is occurred . carries:  0  1                              carries: 1  0            +70      0  1000110                  -70       1  0111010 +800  1010000-801  0110000   +150      1  0010110                 -150      0  1101010 Overflow
THANK YOU THANK YOU

Weitere ähnliche Inhalte

Andere mochten auch (18)

Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
 
Codes and conventions:electronic for Q1
Codes and conventions:electronic for Q1Codes and conventions:electronic for Q1
Codes and conventions:electronic for Q1
 
Number systems
Number systemsNumber systems
Number systems
 
Number system
Number  systemNumber  system
Number system
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
Number codes
Number codesNumber codes
Number codes
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtEr
 
vedic mathematics based MAC unit
vedic mathematics based MAC unitvedic mathematics based MAC unit
vedic mathematics based MAC unit
 
Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
 
Vedic maths
Vedic mathsVedic maths
Vedic maths
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
Vedic Mathematics.ppt
Vedic Mathematics.pptVedic Mathematics.ppt
Vedic Mathematics.ppt
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock device
 
PPT on Vedic maths
PPT on Vedic mathsPPT on Vedic maths
PPT on Vedic maths
 
number system
number systemnumber system
number system
 
Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 
Vedic Mathematics ppt
Vedic Mathematics pptVedic Mathematics ppt
Vedic Mathematics ppt
 

Ähnlich wie Data r epresentation

Ähnlich wie Data r epresentation (20)

Number Systems
Number SystemsNumber Systems
Number Systems
 
Good
GoodGood
Good
 
Complement in DLD
Complement in DLDComplement in DLD
Complement in DLD
 
Complements
ComplementsComplements
Complements
 
digital-180612132737.pdf
digital-180612132737.pdfdigital-180612132737.pdf
digital-180612132737.pdf
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
DIGITAL DESIGN
DIGITAL DESIGNDIGITAL DESIGN
DIGITAL DESIGN
 
Complements of numbers
Complements of numbersComplements of numbers
Complements of numbers
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.ppt
numbers_systems.pptnumbers_systems.ppt
numbers_systems.ppt
 
numbers_systems.pptx
numbers_systems.pptxnumbers_systems.pptx
numbers_systems.pptx
 
Conversion between various numbers_systems
Conversion between various numbers_systemsConversion between various numbers_systems
Conversion between various numbers_systems
 
numbers_systems (1).ppt
numbers_systems (1).pptnumbers_systems (1).ppt
numbers_systems (1).ppt
 
005618132.pdf
005618132.pdf005618132.pdf
005618132.pdf
 
Digital logic and design 02
Digital logic and design 02Digital logic and design 02
Digital logic and design 02
 
Number system
Number systemNumber system
Number system
 
Application of bases
Application of basesApplication of bases
Application of bases
 

Mehr von Sanjeev Patel

Unit v export incentives
Unit v export incentivesUnit v export incentives
Unit v export incentivesSanjeev Patel
 
Types of letter of credits on 11 09 2012
Types of letter of credits  on 11 09 2012Types of letter of credits  on 11 09 2012
Types of letter of credits on 11 09 2012Sanjeev Patel
 
Risks involved in imports
Risks involved in importsRisks involved in imports
Risks involved in importsSanjeev Patel
 
Processing of export order on 4 09 12
Processing of export order on 4 09 12Processing of export order on 4 09 12
Processing of export order on 4 09 12Sanjeev Patel
 
Mib 3.6 unit ii on 10 09 12
Mib 3.6 unit ii  on 10 09 12Mib 3.6 unit ii  on 10 09 12
Mib 3.6 unit ii on 10 09 12Sanjeev Patel
 
Mib 3.6 unit 2 on 17 09 2012
Mib 3.6 unit 2 on 17 09 2012Mib 3.6 unit 2 on 17 09 2012
Mib 3.6 unit 2 on 17 09 2012Sanjeev Patel
 
Mib 3.6 on august 6 th 2012
Mib 3.6 on august 6 th 2012Mib 3.6 on august 6 th 2012
Mib 3.6 on august 6 th 2012Sanjeev Patel
 
Mib 3.6 on 13 th aug 2012 charac and types of exim docs
Mib 3.6 on 13 th aug 2012  charac and types of exim docsMib 3.6 on 13 th aug 2012  charac and types of exim docs
Mib 3.6 on 13 th aug 2012 charac and types of exim docsSanjeev Patel
 
Mib 3.6 on 13 th aug 2012 charac and types of exim docs copy
Mib 3.6 on 13 th aug 2012  charac and types of exim docs   copyMib 3.6 on 13 th aug 2012  charac and types of exim docs   copy
Mib 3.6 on 13 th aug 2012 charac and types of exim docs copySanjeev Patel
 
Mib 3.6 marine insurance on 09 10 12 copy
Mib 3.6 marine insurance  on 09 10 12   copyMib 3.6 marine insurance  on 09 10 12   copy
Mib 3.6 marine insurance on 09 10 12 copySanjeev Patel
 
Mib 3.6 export financing on 1 10 12
Mib 3.6 export financing on 1 10 12Mib 3.6 export financing on 1 10 12
Mib 3.6 export financing on 1 10 12Sanjeev Patel
 
Incoterms on 27th august 2012
Incoterms on 27th august 2012Incoterms on 27th august 2012
Incoterms on 27th august 2012Sanjeev Patel
 
Export import control main
Export import control   mainExport import control   main
Export import control mainSanjeev Patel
 
Mib 3.6 on 14th aug 2012
Mib 3.6  on 14th aug 2012Mib 3.6  on 14th aug 2012
Mib 3.6 on 14th aug 2012Sanjeev Patel
 
Teachers day _Sanjeev_Patel
Teachers day  _Sanjeev_PatelTeachers day  _Sanjeev_Patel
Teachers day _Sanjeev_PatelSanjeev Patel
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Memory reference instruction
Memory reference instructionMemory reference instruction
Memory reference instructionSanjeev Patel
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 

Mehr von Sanjeev Patel (20)

Unit v export incentives
Unit v export incentivesUnit v export incentives
Unit v export incentives
 
Types of letter of credits on 11 09 2012
Types of letter of credits  on 11 09 2012Types of letter of credits  on 11 09 2012
Types of letter of credits on 11 09 2012
 
Risks involved in imports
Risks involved in importsRisks involved in imports
Risks involved in imports
 
Processing of export order on 4 09 12
Processing of export order on 4 09 12Processing of export order on 4 09 12
Processing of export order on 4 09 12
 
North america ppt
North america pptNorth america ppt
North america ppt
 
Mib 3.6 unit ii on 10 09 12
Mib 3.6 unit ii  on 10 09 12Mib 3.6 unit ii  on 10 09 12
Mib 3.6 unit ii on 10 09 12
 
Mib 3.6 unit 2 on 17 09 2012
Mib 3.6 unit 2 on 17 09 2012Mib 3.6 unit 2 on 17 09 2012
Mib 3.6 unit 2 on 17 09 2012
 
Mib 3.6 on august 6 th 2012
Mib 3.6 on august 6 th 2012Mib 3.6 on august 6 th 2012
Mib 3.6 on august 6 th 2012
 
Mib 3.6 on 13 th aug 2012 charac and types of exim docs
Mib 3.6 on 13 th aug 2012  charac and types of exim docsMib 3.6 on 13 th aug 2012  charac and types of exim docs
Mib 3.6 on 13 th aug 2012 charac and types of exim docs
 
Mib 3.6 on 13 th aug 2012 charac and types of exim docs copy
Mib 3.6 on 13 th aug 2012  charac and types of exim docs   copyMib 3.6 on 13 th aug 2012  charac and types of exim docs   copy
Mib 3.6 on 13 th aug 2012 charac and types of exim docs copy
 
Mib 3.6 marine insurance on 09 10 12 copy
Mib 3.6 marine insurance  on 09 10 12   copyMib 3.6 marine insurance  on 09 10 12   copy
Mib 3.6 marine insurance on 09 10 12 copy
 
Mib 3.6 export financing on 1 10 12
Mib 3.6 export financing on 1 10 12Mib 3.6 export financing on 1 10 12
Mib 3.6 export financing on 1 10 12
 
Incoterms on 27th august 2012
Incoterms on 27th august 2012Incoterms on 27th august 2012
Incoterms on 27th august 2012
 
Export import control main
Export import control   mainExport import control   main
Export import control main
 
Mib 3.6 on 14th aug 2012
Mib 3.6  on 14th aug 2012Mib 3.6  on 14th aug 2012
Mib 3.6 on 14th aug 2012
 
Teachers day _Sanjeev_Patel
Teachers day  _Sanjeev_PatelTeachers day  _Sanjeev_Patel
Teachers day _Sanjeev_Patel
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Memory reference instruction
Memory reference instructionMemory reference instruction
Memory reference instruction
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Introduction
IntroductionIntroduction
Introduction
 

Kürzlich hochgeladen

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Kürzlich hochgeladen (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

Data r epresentation

  • 2. Binary number system- [ 0and 1 ] Radix-2 , e.g.-(101101)2 Decimal number system- [ 0 to 9 ] Radix-10 , e.g.-(243)10 Octal number system- [ 0 to 7 ] Radix-8 , e.g.-(736.4)8 Hexadecimal - [ 0 to 9 and A to F ] Radix-16, e.g.-(F3)16 NUMBER SYSTEMS:
  • 3. Conversion to decimal- A number expressed in base r can be converted to its decimal equivalent by multiplying each coefficient by corresponding power of r and adding . The following is an example of octal to decimal conversion: Conversion
  • 4. Conversion from decimal to ‘r’ : Conversion of decimal integer into a base r is done by successive divisions by r and accumulation of the remainders . The conversion of fraction is done by successive multiplication by r and accumulation of integer so obtained.
  • 5. Conversion from and to binary , octal , hexadecimal- Since 23=8 and 24=16, each octal digits corresponds to three and each hexadecimal corresponds to 4 binary digits . The conversion from binary to octal and hexadecimal is done by partitioning the binary no. into groups of three and four bits respectively .
  • 6. (r-1)’s - - 9’s complement : It follows that the 9’s complement of a decimal no. is obtained by subtracting each digit from 9. e.g.- 9’s complement of 546700 is 999999-546700=453299 -1’s complement: The 1’s complement of a binary no. is obtained by subtracting each digit by 1. e.g.- 1’s complement of 1011001 is 0100110. Complements
  • 7. ( r’s ) – -10’s complement : 10’s complement of a decimal number is obtained by adding 1 to the 9’s complement value. e.g.- 10’s complement of 2389 is 7610+1=7611. -2’s complement : 2’s complement of binary number is obtained by adding 1 to the 1’s complement. e.g. – 2’s complement of 101100 is 010011+1=010100.
  • 10.
  • 11. An overflow condition can be detected by observing the carry into the sign bit position and carry out of the sign bit position . If these two carries are not equal an overflow is occurred . carries: 0 1 carries: 1 0 +70 0 1000110 -70 1 0111010 +800 1010000-801 0110000 +150 1 0010110 -150 0 1101010 Overflow