M. Raihan
Email: rianku11@gmail.com
Data Representation
Part-1
Data Representation
10-Aug-17 3
The techniques to represent the data.
External data representation: represented by the
alphabets A to Z and a to z, digits 0 to 9 and various other
symbols.
Used to formulate problems and are fed to computer.
The processed output is also in same form.
Internal representation: represented by 0 and 1. A form
suitable for storing into memory and for processing by the
processor.
Continue
10-Aug-17 4
Data are of two types:
Numeric
Non-numeric (character data)
The numeric data deals only with numbers
and arithmetic operations.
The non-numeric data deals with characters,
names, addresses, etc. and non-arithmetic
operations.
Numeric Data
10-Aug-17 5
Based on the presence of decimal point, numeric data are
of 2 types:
Integer
Real
Integer: do not have any decimal point. Example: 120,
1971, –231, 0
Real: decimal point divides real into 2 parts - integer part
and fractional part.
Example: 123.234, 3.1416, –23.15
In 12.34, 12 is the integer part and .34 is the fractional
part.
Numeric Data (Continue)
10-Aug-17 6
Numbers can be categorized as:
un-signed numbers
signed numbers
Un-signed numbers are always positive. Example: 120, 1971,
3.1416, 0
Signed numbers are either positive or negative. Example: +120, –
1971, +12.345, –23.15, +0 etc.
Representation of Unsigned Integers
10-Aug-17 7
All the bits for the number is used to represent a number.
No need to represent the sign of the number.
For a 8 bits number, the highest integer value is (11111111)2= (255)10
and the lowest integer value is (00000000)2 = (0)10.
Using an n bits, values from 0 to (2n – 1) can be represented.
Number System
10-Aug-17 8
Binary Number System: Base 2. Digits used : 0, 1
Octal Number System: Base 8. Digits used : 0 to 7
Hexa Decimal Number System: Base 16. Digits used:
0 to 9, Letters used : A- F
Decimal Number System: Base 10. Digits from 0 to 9
Decimal Number System
10-Aug-17 9
Each position represents a specific power of the base (10).
For example, the decimal number 1234 consists of the digit 4 in the units position,
3 in the tens position, 2 in the hundreds position, and 1 in the thousands position.
Its value can be written as:
(1 x 1000)+ (2 x 100)+ (3 x 10)+ (4 x l)
(1 x 103)+ (2 x 102)+ (3 x 101)+ (4 x l00)
1000 + 200 + 30 + 4
1234
Binary Number System
10-Aug-17 10
Characteristics of the binary number system are as
follows −
Uses two digits, 0 and 1
Also called as base 2 number system
Each position in a binary number represents a 0 power of
the base (2). Example 20
Last position in a binary number represents a x power of
the base (2). Example 2x where x represents the last
position - 1.
Binary Number System (continue)
10-Aug-17 11
Example: Binary Number: 101012
Step 1:
((1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20))10
Step 2:
(16 + 0 + 4 + 0 + 1)10
Step 3:
2110
Octal Number System
10-Aug-17 12
Characteristics of the octal number system are as
follows −
Uses eight digits, 0,1,2,3,4,5,6,7
Also called as base 8 number system
Each position in an octal number represents a 0
power of the base (8). Example 80
Last position in an octal number represents a x
power of the base (8). Example 8x where x
represents the last position - 1
Octal Number System (continue)
10-Aug-17 13
Example: Octal Number: 125708
((1 x 84) + (2 x 83) + (5 x 82) + (7 x 81) + (0 x 80))10
(4096 + 1024 + 320 + 56 + 0)10
549610
Hexadecimal Number System
10-Aug-17 14
Characteristics of hexadecimal number system are as follows −
Uses 10 digits and 6 letters, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Letters represent the numbers starting from 10. A = 10. B = 11, C
= 12, D = 13, E = 14, F = 15
Also called as base 16 number system
Each position in a hexadecimal number represents a 0 power of
the base (16). Example, 160
Last position in a hexadecimal number represents a x power of
the base (16). Example 16x where x represents the last position - 1
Hexadecimal Number System (continue)
10-Aug-17 15
Example: Hexadecimal Number: 19FDE16
(1 x 164) + (9 x 163) + (F x 162) + (D x 161) + (E x 160))10
((1 x 164) + (9 x 163) + (15 x 162) + (13 x 161) + (14 x 160))10
(65536+ 36864 + 3840 + 208 + 14)10
10646210
Decimal to Binary
10-Aug-17 16
Base Number Remainder
2 41
2 20 1
2 10 0
2 5 0
2 2 1
2 1 0
0 1
Quotient
(41)10 = (101001)2
Binary to Decimal
10-Aug-17 17
Decimal to Octal
10-Aug-17 18
Decimal to Hexadecimal
10-Aug-17 19
Octal to Binary
10-Aug-17 20
Binary to Octal
10-Aug-17 21
Binary to Hexadecimal
10-Aug-17 22
Hexadecimal to Binary
10-Aug-17 23
Thank You
10-Aug-17 24

More Related Content

PPTX
Number system
PPTX
Number System
PPTX
Number system
PPTX
number system
PPTX
Number system of computer
PPTX
Hexadecimal base 16
DOCX
Number system.pdf
DOCX
Number system with conversions www.eakanchha.com
Number system
Number System
Number system
number system
Number system of computer
Hexadecimal base 16
Number system.pdf
Number system with conversions www.eakanchha.com

What's hot (18)

PPT
08. Numeral Systems
PPTX
Number system
PPTX
11 octal number system
PPTX
ALL ABOUT NUMBER SYSTEMS
PPTX
number system
PPTX
Binary, Decimal and Hexadecimal
PPT
Number system part 1
PPT
Number system
PDF
Number Systems
PPT
Hexadecimal numbers
PDF
Ch 4
PPTX
Number system
PDF
Data representation
PPTX
JPC#8 Foundation of Computer Science
PDF
Number System and Boolean Algebra
PDF
Exercise1 java
PPT
Data representation moris mano ch 03
08. Numeral Systems
Number system
11 octal number system
ALL ABOUT NUMBER SYSTEMS
number system
Binary, Decimal and Hexadecimal
Number system part 1
Number system
Number Systems
Hexadecimal numbers
Ch 4
Number system
Data representation
JPC#8 Foundation of Computer Science
Number System and Boolean Algebra
Exercise1 java
Data representation moris mano ch 03
Ad

Similar to Lecture 7 (20)

PPTX
Class XI Chapter 2 Data Representation By Afeef.pptx
PPTX
Number System.pptx
PPTX
Number system
PPTX
Number+system (1)
PPTX
Number Systems Lec and their conversions 1.pptx
PPTX
Psychology presentation for students basic and easy
PPTX
Number systems
PPTX
Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...
PPTX
Digital Principles & System Design Unit1_Number systems
PDF
name-mansimittal-160716124305.pdf
PPTX
Number System in CoMpUtEr
PPTX
Number systems
PPTX
02 Chapter 2 Data representation and organization of computer system_V4 (2).pptx
PPTX
module 3,Boolean algebra and logic circuits .pptx
PPTX
number system.pptx
PPTX
Number System.pptx
PPTX
Number System & codes.pptx ye mg of the day
PPTX
1.Digital Electronics overview & Number Systems.pptx
PPSX
Basic of number system
PPTX
Wk3.pptx ICT INFORMATION COMMUNICATION TECHNOLOGY
Class XI Chapter 2 Data Representation By Afeef.pptx
Number System.pptx
Number system
Number+system (1)
Number Systems Lec and their conversions 1.pptx
Psychology presentation for students basic and easy
Number systems
Data representation (ASCII, ISO etc.), direction of data flow (simplex, half ...
Digital Principles & System Design Unit1_Number systems
name-mansimittal-160716124305.pdf
Number System in CoMpUtEr
Number systems
02 Chapter 2 Data representation and organization of computer system_V4 (2).pptx
module 3,Boolean algebra and logic circuits .pptx
number system.pptx
Number System.pptx
Number System & codes.pptx ye mg of the day
1.Digital Electronics overview & Number Systems.pptx
Basic of number system
Wk3.pptx ICT INFORMATION COMMUNICATION TECHNOLOGY
Ad

More from M. Raihan (20)

PDF
Lecture 7
PDF
Lecture 6
PDF
Lecture 5
PDF
Lecture 4
PDF
Lecture 3
PDF
Lecture 2
PDF
Lecture 1
PDF
Amplifiers and biopotential amplifiers new
PDF
Comparison of fnir with other neuroimaging modalities relation between eeg sy...
PDF
Lecture 10
PDF
Lecture 9
PDF
Lecture 8
PDF
Lecture 6
PDF
Lecture 5
PDF
Lecture 4
PDF
Lecture 18
PDF
Lecture 17
PDF
Lecture 16
PDF
Lecture 3
PDF
Lecture 15
Lecture 7
Lecture 6
Lecture 5
Lecture 4
Lecture 3
Lecture 2
Lecture 1
Amplifiers and biopotential amplifiers new
Comparison of fnir with other neuroimaging modalities relation between eeg sy...
Lecture 10
Lecture 9
Lecture 8
Lecture 6
Lecture 5
Lecture 4
Lecture 18
Lecture 17
Lecture 16
Lecture 3
Lecture 15

Recently uploaded (20)

PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PDF
FYJC - Chemistry textbook - standard 11.
PPTX
Neurology of Systemic disease all systems
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
anganwadi services for the b.sc nursing and GNM
PPTX
Thinking Routines and Learning Engagements.pptx
PDF
Health aspects of bilberry: A review on its general benefits
PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PDF
Compact First Student's Book Cambridge Official
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PDF
African Communication Research: A review
PDF
Physical pharmaceutics two in b pharmacy
DOCX
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
growth and developement.pptxweeeeerrgttyyy
PPTX
Diploma pharmaceutics notes..helps diploma students
PPTX
IT infrastructure and emerging technologies
CHROMIUM & Glucose Tolerance Factor.pptx
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
FYJC - Chemistry textbook - standard 11.
Neurology of Systemic disease all systems
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
anganwadi services for the b.sc nursing and GNM
Thinking Routines and Learning Engagements.pptx
Health aspects of bilberry: A review on its general benefits
GSA-Past-Papers-2010-2024-2.pdf CSS examination
Compact First Student's Book Cambridge Official
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
African Communication Research: A review
Physical pharmaceutics two in b pharmacy
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
Diabetes Mellitus , types , clinical picture, investigation and managment
growth and developement.pptxweeeeerrgttyyy
Diploma pharmaceutics notes..helps diploma students
IT infrastructure and emerging technologies

Lecture 7

  • 3. Data Representation 10-Aug-17 3 The techniques to represent the data. External data representation: represented by the alphabets A to Z and a to z, digits 0 to 9 and various other symbols. Used to formulate problems and are fed to computer. The processed output is also in same form. Internal representation: represented by 0 and 1. A form suitable for storing into memory and for processing by the processor.
  • 4. Continue 10-Aug-17 4 Data are of two types: Numeric Non-numeric (character data) The numeric data deals only with numbers and arithmetic operations. The non-numeric data deals with characters, names, addresses, etc. and non-arithmetic operations.
  • 5. Numeric Data 10-Aug-17 5 Based on the presence of decimal point, numeric data are of 2 types: Integer Real Integer: do not have any decimal point. Example: 120, 1971, –231, 0 Real: decimal point divides real into 2 parts - integer part and fractional part. Example: 123.234, 3.1416, –23.15 In 12.34, 12 is the integer part and .34 is the fractional part.
  • 6. Numeric Data (Continue) 10-Aug-17 6 Numbers can be categorized as: un-signed numbers signed numbers Un-signed numbers are always positive. Example: 120, 1971, 3.1416, 0 Signed numbers are either positive or negative. Example: +120, – 1971, +12.345, –23.15, +0 etc.
  • 7. Representation of Unsigned Integers 10-Aug-17 7 All the bits for the number is used to represent a number. No need to represent the sign of the number. For a 8 bits number, the highest integer value is (11111111)2= (255)10 and the lowest integer value is (00000000)2 = (0)10. Using an n bits, values from 0 to (2n – 1) can be represented.
  • 8. Number System 10-Aug-17 8 Binary Number System: Base 2. Digits used : 0, 1 Octal Number System: Base 8. Digits used : 0 to 7 Hexa Decimal Number System: Base 16. Digits used: 0 to 9, Letters used : A- F Decimal Number System: Base 10. Digits from 0 to 9
  • 9. Decimal Number System 10-Aug-17 9 Each position represents a specific power of the base (10). For example, the decimal number 1234 consists of the digit 4 in the units position, 3 in the tens position, 2 in the hundreds position, and 1 in the thousands position. Its value can be written as: (1 x 1000)+ (2 x 100)+ (3 x 10)+ (4 x l) (1 x 103)+ (2 x 102)+ (3 x 101)+ (4 x l00) 1000 + 200 + 30 + 4 1234
  • 10. Binary Number System 10-Aug-17 10 Characteristics of the binary number system are as follows − Uses two digits, 0 and 1 Also called as base 2 number system Each position in a binary number represents a 0 power of the base (2). Example 20 Last position in a binary number represents a x power of the base (2). Example 2x where x represents the last position - 1.
  • 11. Binary Number System (continue) 10-Aug-17 11 Example: Binary Number: 101012 Step 1: ((1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20))10 Step 2: (16 + 0 + 4 + 0 + 1)10 Step 3: 2110
  • 12. Octal Number System 10-Aug-17 12 Characteristics of the octal number system are as follows − Uses eight digits, 0,1,2,3,4,5,6,7 Also called as base 8 number system Each position in an octal number represents a 0 power of the base (8). Example 80 Last position in an octal number represents a x power of the base (8). Example 8x where x represents the last position - 1
  • 13. Octal Number System (continue) 10-Aug-17 13 Example: Octal Number: 125708 ((1 x 84) + (2 x 83) + (5 x 82) + (7 x 81) + (0 x 80))10 (4096 + 1024 + 320 + 56 + 0)10 549610
  • 14. Hexadecimal Number System 10-Aug-17 14 Characteristics of hexadecimal number system are as follows − Uses 10 digits and 6 letters, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F Letters represent the numbers starting from 10. A = 10. B = 11, C = 12, D = 13, E = 14, F = 15 Also called as base 16 number system Each position in a hexadecimal number represents a 0 power of the base (16). Example, 160 Last position in a hexadecimal number represents a x power of the base (16). Example 16x where x represents the last position - 1
  • 15. Hexadecimal Number System (continue) 10-Aug-17 15 Example: Hexadecimal Number: 19FDE16 (1 x 164) + (9 x 163) + (F x 162) + (D x 161) + (E x 160))10 ((1 x 164) + (9 x 163) + (15 x 162) + (13 x 161) + (14 x 160))10 (65536+ 36864 + 3840 + 208 + 14)10 10646210
  • 16. Decimal to Binary 10-Aug-17 16 Base Number Remainder 2 41 2 20 1 2 10 0 2 5 0 2 2 1 2 1 0 0 1 Quotient (41)10 = (101001)2