SlideShare a Scribd company logo
DATA REPRESENTATIONBY-                           Ravi Sharma
Binary number system- [ 0and 1 ]                                                        Radix-2 , e.g.-(101101)2Decimal number system- [ 0 to 9 ]              Radix-10 , e.g.-(243)10Octal number system- [ 0 to 7 ]                                       Radix-8 , e.g.-(736.4)8Hexadecimal - [ 0 to 9 and A to F ]   Radix-16, e.g.-(F3)16NUMBER 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
Data r epresentation
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  1101010Overflow
THANK YOUTHANK YOU

More Related Content

PDF
Lecture 09
PPTX
Trigonometry addition & substraction id
PPTX
Number system part 2
PPTX
Hexadecimal to octal conversion
PPTX
Hexadecimal to binary conversion
PPTX
Gray code to binary conversion
PPTX
Binary decimal conversion
PPT
Acceleration or equilibrium practice quiz (1)
Lecture 09
Trigonometry addition & substraction id
Number system part 2
Hexadecimal to octal conversion
Hexadecimal to binary conversion
Gray code to binary conversion
Binary decimal conversion
Acceleration or equilibrium practice quiz (1)

Viewers also liked (18)

PPTX
Binary Codes and Number System
PPTX
Codes and conventions:electronic for Q1
PPTX
Number system
PPTX
Number System & Data Representation
PPTX
Number System in CoMpUtEr
PPTX
vedic mathematics based MAC unit
PDF
Ee 202 chapter 1 number and code system
PPTX
Vedic maths
PPT
Digital 1 8
PPTX
Vedic Mathematics.ppt
PPTX
Electronic code lock device
PPTX
PPT on Vedic maths
PPTX
number system
PPTX
Number system
PPT
Number System
PPT
Vedic Mathematics ppt
Binary Codes and Number System
Codes and conventions:electronic for Q1
Number system
Number System & Data Representation
Number System in CoMpUtEr
vedic mathematics based MAC unit
Ee 202 chapter 1 number and code system
Vedic maths
Digital 1 8
Vedic Mathematics.ppt
Electronic code lock device
PPT on Vedic maths
number system
Number system
Number System
Vedic Mathematics ppt
Ad

Similar to Data r epresentation (20)

PDF
Course Name: Digital System Design Number System.pdf
PDF
uyuyuy.pdf
PPTX
Number system in Digital Electronics
PPTX
Data representation
PPTX
Number Systems- Module One number sys.pptx
PPTX
computer organization-computer organization-
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
PPTX
Number system
PDF
Chapter 1 digital systems and binary numbers
PPTX
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
PPTX
Number System
PDF
Module 1 Digital Logic Design .pptx.pdf
PPT
Number_System and Boolean Algebra in Digital System Design
PPTX
Number System & codes.pptx ye mg of the day
PPT
45196656565656565656565656565656565656566.ppt
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
PPT
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
PPTX
Chapter 2 Data Representation Data Representation
PDF
Number system
PDF
Csc 2313 (lecture 3)
Course Name: Digital System Design Number System.pdf
uyuyuy.pdf
Number system in Digital Electronics
Data representation
Number Systems- Module One number sys.pptx
computer organization-computer organization-
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
Number system
Chapter 1 digital systems and binary numbers
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
Number System
Module 1 Digital Logic Design .pptx.pdf
Number_System and Boolean Algebra in Digital System Design
Number System & codes.pptx ye mg of the day
45196656565656565656565656565656565656566.ppt
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
Basic Digital_Systems_and_Binary_Numbers Sample.ppt
Chapter 2 Data Representation Data Representation
Number system
Csc 2313 (lecture 3)
Ad

More from Sanjeev Patel (20)

PPT
Unit v export incentives
PPT
Types of letter of credits on 11 09 2012
PPT
Risks involved in imports
PPT
Processing of export order on 4 09 12
PPTX
North america ppt
PPT
Mib 3.6 unit ii on 10 09 12
PPT
Mib 3.6 unit 2 on 17 09 2012
PPT
Mib 3.6 on august 6 th 2012
PPT
Mib 3.6 on 13 th aug 2012 charac and types of exim docs
PPT
Mib 3.6 on 13 th aug 2012 charac and types of exim docs copy
PPT
Mib 3.6 marine insurance on 09 10 12 copy
PPT
Mib 3.6 export financing on 1 10 12
PPT
Incoterms on 27th august 2012
PPT
Export import control main
PPT
Mib 3.6 on 14th aug 2012
PPSX
Teachers day _Sanjeev_Patel
PPTX
Register transfer language
PPT
Memory reference instruction
PPTX
Logical and shift micro operations
PPT
Introduction
Unit v export incentives
Types of letter of credits on 11 09 2012
Risks involved in imports
Processing of export order on 4 09 12
North america ppt
Mib 3.6 unit ii on 10 09 12
Mib 3.6 unit 2 on 17 09 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 docs copy
Mib 3.6 marine insurance on 09 10 12 copy
Mib 3.6 export financing on 1 10 12
Incoterms on 27th august 2012
Export import control main
Mib 3.6 on 14th aug 2012
Teachers day _Sanjeev_Patel
Register transfer language
Memory reference instruction
Logical and shift micro operations
Introduction

Recently uploaded (20)

PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
master seminar digital applications in india
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
01-Introduction-to-Information-Management.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Yogi Goddess Pres Conference Studio Updates
master seminar digital applications in india
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Microbial disease of the cardiovascular and lymphatic systems
Orientation - ARALprogram of Deped to the Parents.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Anesthesia in Laparoscopic Surgery in India
01-Introduction-to-Information-Management.pdf
Complications of Minimal Access Surgery at WLH
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
VCE English Exam - Section C Student Revision Booklet
202450812 BayCHI UCSC-SV 20250812 v17.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3

Data r epresentation

  • 2. Binary number system- [ 0and 1 ] Radix-2 , e.g.-(101101)2Decimal number system- [ 0 to 9 ] Radix-10 , e.g.-(243)10Octal number system- [ 0 to 7 ] Radix-8 , e.g.-(736.4)8Hexadecimal - [ 0 to 9 and A to F ] Radix-16, e.g.-(F3)16NUMBER 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.
  • 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 1101010Overflow