Data Representation
2
Outline
 Representing numbers
 Unsigned
 Signed
 Floating point
 Representing characters & symbols
 ASCII
 Unicode
3
Data Representation in Computers
 Data are stored in Registers
 Registers are limited in number & size
 With a n-bit register
 Min value 0
 Max value 2n
-1
n-1 n-2 ...
… ... 2 0
1
n-bits
4
Data Representation
Data
Representation
• Represents quality or
characteristics
• Not proportional to a
value
• Name, NIC no, index no,
Address
Qualitative
Quantitative
• Quantifiable
• Proportional to value α
• No of students, marks for
CS2052, GPA
5
Data Representation (Cont.)
Data
Quantitative
Integers
Signed
Unsigned
Non-
integers
Signed
Unsigned
Qualitative
6
Number Systems
 Decimal number system
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
 Binary number system
 0, 1
 Octal number system
 0, 1, 2, 3, 4, 5, 6, 7
 Hexadecimal number system
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
7
Quantitative Numbers
 Integers
 Unsigned 20
 Signed +20, -20
 Non-integers
 Floating point numbers - 10.25, 3.33333…, 1/8 = 0.125
8
Signed Integers
 We need a way to represent negative values
 3 representations
 Sign & Magnitude representation (S&M)
 Complement method
 Bias notation or Excess notation
9
1. Sign & Magnitude Representation
 n-bit unsigned magnitude & sign bit (S)
 If S
 0 – Integer is positive or zero
 1 – Integer is negative or zero
 Range –(2n
-1) to +(2n
-1)
sign n-1 ...
n-2 ... 2 0
1
Magnitude (n-bits)
10
Example – Sign & Magnitude
 If 8-bit register is used what are min & max
numbers?
 What are 0000 0000 and 1000 0000 in decimal?
 Representation of zero is not unique
11
12
 Digital electronics is a field of electronics
involving the study of digital signals and the
engineering of devices that use or produce
them.

More Related Content

PPTX
Data representation
PPTX
Data Representation
PDF
Number_systems-3 in Digital circuits and systems.pdf
PDF
Concept map for Number system
PPTX
6.number system
PPT
Intro To TSQL - Unit 5
PPT
Intro to tsql unit 5
PPTX
Week 15 - Technopreneurial Plan Presentation - per group.pptx
Data representation
Data Representation
Number_systems-3 in Digital circuits and systems.pdf
Concept map for Number system
6.number system
Intro To TSQL - Unit 5
Intro to tsql unit 5
Week 15 - Technopreneurial Plan Presentation - per group.pptx

More from takatorifernandez (20)

PPTX
Finals Lesson 2 Pre defined Math Functions.pptx
PPTX
Lesson 1.8 Device Configuration and Management .pptx
PPTX
Lesson 4 - intro to String Handling.pptx
PPTX
New Microsoft PowerPoint Presentation.pptx
PPTX
Introduction to Robotics1-Finals -Lesson2.pptx
PPTX
Robotics1-Finals -Lesson1 in Introduction to Rob.pptx
PPTX
Lesson 2 - Introduction to Assignment Operators.pptx
PPTX
Lesson 1 - Intro to Arithmetic Operators.pptx
PPTX
Lesson 1 - The Technopreneurial Perspective.pptx
PPTX
Midterm 01- Introduction to Verilog - Types of Verilog modeling styles.pptx
DOCX
Week 5.2 - VLAN creation guidelines.docx
PPTX
5.3 Taxonomy of Blockchain Systems (12).pptx
PPTX
5.3 Introduction to Actuators etl. (7).pptx
PPTX
3. Analog Digital C to Digital Analog C.pptx
PPTX
Native Virtuak Local Area Network 102.pptx
PPTX
Native Virtual Local Area Network 101.pptx
PPTX
Introduction to Computing Lec-Lesson 1.pptx
PPTX
Introduction to Rotational Dynamics.pptx
PPTX
5Climate Change and Technology for the environment.pptx
PPTX
6Innovation Ecosystem for green environment .pptx
Finals Lesson 2 Pre defined Math Functions.pptx
Lesson 1.8 Device Configuration and Management .pptx
Lesson 4 - intro to String Handling.pptx
New Microsoft PowerPoint Presentation.pptx
Introduction to Robotics1-Finals -Lesson2.pptx
Robotics1-Finals -Lesson1 in Introduction to Rob.pptx
Lesson 2 - Introduction to Assignment Operators.pptx
Lesson 1 - Intro to Arithmetic Operators.pptx
Lesson 1 - The Technopreneurial Perspective.pptx
Midterm 01- Introduction to Verilog - Types of Verilog modeling styles.pptx
Week 5.2 - VLAN creation guidelines.docx
5.3 Taxonomy of Blockchain Systems (12).pptx
5.3 Introduction to Actuators etl. (7).pptx
3. Analog Digital C to Digital Analog C.pptx
Native Virtuak Local Area Network 102.pptx
Native Virtual Local Area Network 101.pptx
Introduction to Computing Lec-Lesson 1.pptx
Introduction to Rotational Dynamics.pptx
5Climate Change and Technology for the environment.pptx
6Innovation Ecosystem for green environment .pptx
Ad

Recently uploaded (20)

PDF
Hazard Identification & Risk Assessment .pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
Trump Administration's workforce development strategy
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
advance database management system book.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
History, Philosophy and sociology of education (1).pptx
Hazard Identification & Risk Assessment .pdf
Chinmaya Tiranga quiz Grand Finale.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Complications of Minimal Access-Surgery.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Trump Administration's workforce development strategy
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Environmental Education MCQ BD2EE - Share Source.pdf
Introduction to pro and eukaryotes and differences.pptx
advance database management system book.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
What if we spent less time fighting change, and more time building what’s rig...
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Virtual and Augmented Reality in Current Scenario
Unit 4 Computer Architecture Multicore Processor.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
TNA_Presentation-1-Final(SAVE)) (1).pptx
History, Philosophy and sociology of education (1).pptx
Ad

Lesson 4 The basics of Data Representation.pptx