SlideShare a Scribd company logo
DATA
REPRESENTATION IN
COMPUTERS
BINARY REPRESENTATION
OF DATA
Data representation in computers
•Bit - a fundamental unit of
information having just two
possible values, as either of the
binary digits 0 or 1.
•Byte - a unit of digital information
in computing and
telecommunications that most
DIGITAL REPRESENTATION
• Within a computer, information is
represented and stored in a
digital binary format.
• The term bit is an abbreviation of
binary digit and represents the
smallest piece of data.
• Humans interpret words and
pictures; computers interpret
only patterns of bits.
NUMBERING SYSTEMS
• Number System Base Symbols used
• Binary 2 0,1
• Octal 8 0,1,2,3,4,5,6,7
• Decimal 10 0,1,2,3,4,5,6,7,8,9
• Hexadecimal 16
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
where A = 10; B = 11; C = 12; D =
USING POSITIONAL NOTATION
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
USING DOUBLING
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Data representation in computers
Use this method to convert
from any base to decimal. Doubling is
used because the given number is of
base 2. If the given number is of a
different base, replace the 2 in the
method with the base of the given
number. For example, if the given number
is in base 37, you would replace the "x 2"
with "x 37". The final result will always be
in decimal (base 10).
PRACTICE
1. 110100012
2. 110012
3. 111100012
CONVERT DECIMAL NUMBERS TO
BINARY
• Example:
25
25/2
12/2
6/2
3/2
1/2
25 = 11001
Quotien
t
12
6
3
1
0
Remaind
er
1
0
0
1
1
CONVERT DECIMAL NUMBERS TO
BINARY
Checking:
1 1 0 0 1 multiplier
16 8 4 2 1 equivalents
16 8 0 0 1 results
16+8+0+0+1 = 25
•Direction: Convert the decimal
numbers shown below to binary.
Perform checking to verify
answers.
1) 19
2) 28
3) 37
Data representation in computers

More Related Content

PPTX
Number System & Data Representation
PPTX
11 octal number system
PPTX
Intro to Bits, Bytes, and Storage
PDF
Lecture-2(2): Number System & Conversion
PPTX
Number system computer fundamental
PPTX
Number system and its conversions
PPTX
Binary computing
PPTX
Number system
Number System & Data Representation
11 octal number system
Intro to Bits, Bytes, and Storage
Lecture-2(2): Number System & Conversion
Number system computer fundamental
Number system and its conversions
Binary computing
Number system

What's hot (20)

PPTX
Data representation
PPTX
Floating point representation
PPTX
Number System
PPT
Binary Arithmetic
PPTX
Chapter 2.1 introduction to number system
PPTX
Data Representation
PPT
BINARY NUMBER SYSTEM
PPTX
Number Systems
PPTX
Binary number ppt
PPT
Basic Concepts Of Information Technology (It)
PPTX
Binary number system
PPTX
Introduction to Operating Systems
PPTX
Conversion binary to decimal
PPT
Binary code - Beginning
PPT
Binary to Decimal Conversion
PPTX
Binary to Decimal Conversion
PPTX
Number system
PDF
Binaty Arithmetic and Binary coding schemes
PPTX
CPU (Central Processing Units)
PPT
multimedia image.ppt
Data representation
Floating point representation
Number System
Binary Arithmetic
Chapter 2.1 introduction to number system
Data Representation
BINARY NUMBER SYSTEM
Number Systems
Binary number ppt
Basic Concepts Of Information Technology (It)
Binary number system
Introduction to Operating Systems
Conversion binary to decimal
Binary code - Beginning
Binary to Decimal Conversion
Binary to Decimal Conversion
Number system
Binaty Arithmetic and Binary coding schemes
CPU (Central Processing Units)
multimedia image.ppt
Ad

Viewers also liked (20)

PPTX
How computers represent data
PPT
Topic 1 Data Representation
PPT
[1] Data Representation
PPT
Computer Data Representation
PPTX
Data Representation
PPT
Data representation
PPT
Computer Systems Data Representation
PPT
Data representation moris mano ch 03
PPT
Data presentation 2
PPTX
Ppt on internet
PPTX
Data communication and network Chapter -1
RTF
4_BIT_ALU
PPT
The internet
PPTX
PPTX
Internet
PPT
Hexadecimal numbers
PPTX
Data representation
PDF
Chap 2 network models
PPT
Hexadecimal
PDF
Computer organuzaton & architecture
How computers represent data
Topic 1 Data Representation
[1] Data Representation
Computer Data Representation
Data Representation
Data representation
Computer Systems Data Representation
Data representation moris mano ch 03
Data presentation 2
Ppt on internet
Data communication and network Chapter -1
4_BIT_ALU
The internet
Internet
Hexadecimal numbers
Data representation
Chap 2 network models
Hexadecimal
Computer organuzaton & architecture
Ad

Similar to Data representation in computers (20)

PPTX
CONVERT AND CALCULATION.pptx
PDF
IN 1300 LEC Basic electronic 1 Basic electronic 1 .pdf
PPTX
Carry out and perform calculation.pptx
PPT
Cit 1101 lec 02
DOC
Chapter 4--Data representation Method.doc
PPTX
Digital Logic Design.pptx
PPTX
DIGITAL REPRESENTATION.pptx
PPTX
MATATAG Grade 7 Additional Material NUmber system.pptx
PDF
Chapter02.pdf
PPT
08 Numeral systems
PDF
form-3-computer studies summarized NOTES.pdf
PPT
45196656565656565656565656565656565656566.ppt
PDF
Digital and Logic Design Chapter 1 binary_systems
PPTX
conversion of number system ng meaurement
PPT
Chapter 1 Digital Systems and Binary Numbers.ppt
PDF
Digital logic_ Number System.pdf advanced
PPTX
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
PPTX
ADE UNIT-III (Digital Fundamentals).pptx
PPTX
DLD-Introduction.pptx
PPTX
Digital Module 2.pptx Digital logic design
CONVERT AND CALCULATION.pptx
IN 1300 LEC Basic electronic 1 Basic electronic 1 .pdf
Carry out and perform calculation.pptx
Cit 1101 lec 02
Chapter 4--Data representation Method.doc
Digital Logic Design.pptx
DIGITAL REPRESENTATION.pptx
MATATAG Grade 7 Additional Material NUmber system.pptx
Chapter02.pdf
08 Numeral systems
form-3-computer studies summarized NOTES.pdf
45196656565656565656565656565656565656566.ppt
Digital and Logic Design Chapter 1 binary_systems
conversion of number system ng meaurement
Chapter 1 Digital Systems and Binary Numbers.ppt
Digital logic_ Number System.pdf advanced
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
ADE UNIT-III (Digital Fundamentals).pptx
DLD-Introduction.pptx
Digital Module 2.pptx Digital logic design

More from Hazel Anne Quirao (20)

PPTX
History of volleyball
PPT
Family and marriage
PPT
The Five S’s (5S) of Good Housekeeping
PPTX
Baroque period
PPTX
Renaissance Period Literature
PPTX
Death of King Arthur
PPTX
Lord Randall
PPTX
Canterbury Tales
PPTX
Contribution of Priests in English Literature
PPTX
Contribution of Knights in English Literature
PPTX
The Ruined City
PPTX
PPTX
Introduction on The Anglo Saxon Era
PPT
PPT
The Properties of Matter
PPTX
ARALIN 2: Mga Pinagkukunang-yaman ng Pilipinas
PPT
PC Building Precautions
PPT
Preparing to Build your own PC
PPT
PC for Managers
PPT
Booting Process
History of volleyball
Family and marriage
The Five S’s (5S) of Good Housekeeping
Baroque period
Renaissance Period Literature
Death of King Arthur
Lord Randall
Canterbury Tales
Contribution of Priests in English Literature
Contribution of Knights in English Literature
The Ruined City
Introduction on The Anglo Saxon Era
The Properties of Matter
ARALIN 2: Mga Pinagkukunang-yaman ng Pilipinas
PC Building Precautions
Preparing to Build your own PC
PC for Managers
Booting Process

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
Big Data Technologies - Introduction.pptx
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25 Week I
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.
Encapsulation theory and applications.pdf

Data representation in computers

  • 3. •Bit - a fundamental unit of information having just two possible values, as either of the binary digits 0 or 1. •Byte - a unit of digital information in computing and telecommunications that most
  • 4. DIGITAL REPRESENTATION • Within a computer, information is represented and stored in a digital binary format. • The term bit is an abbreviation of binary digit and represents the smallest piece of data. • Humans interpret words and pictures; computers interpret only patterns of bits.
  • 5. NUMBERING SYSTEMS • Number System Base Symbols used • Binary 2 0,1 • Octal 8 0,1,2,3,4,5,6,7 • Decimal 10 0,1,2,3,4,5,6,7,8,9 • Hexadecimal 16 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F where A = 10; B = 11; C = 12; D =
  • 21. Use this method to convert from any base to decimal. Doubling is used because the given number is of base 2. If the given number is of a different base, replace the 2 in the method with the base of the given number. For example, if the given number is in base 37, you would replace the "x 2" with "x 37". The final result will always be in decimal (base 10).
  • 23. CONVERT DECIMAL NUMBERS TO BINARY • Example: 25 25/2 12/2 6/2 3/2 1/2 25 = 11001 Quotien t 12 6 3 1 0 Remaind er 1 0 0 1 1
  • 24. CONVERT DECIMAL NUMBERS TO BINARY Checking: 1 1 0 0 1 multiplier 16 8 4 2 1 equivalents 16 8 0 0 1 results 16+8+0+0+1 = 25
  • 25. •Direction: Convert the decimal numbers shown below to binary. Perform checking to verify answers. 1) 19 2) 28 3) 37

Editor's Notes

  • #5: A bit can have only two possible values, a one digit (1) or a zero digit (0). A bit can be used to represent the state of something that has two states. For example, a light switch can be either On or Off; in binary representation, these states would correspond to 1 and 0, respectively.
  • #6: Each number system has a base also called a Radix. A decimal number system is a system of base 10; binary is a system of base 2; octal is a system of base 8; and hexadecimal is a system of base 16. What are these varying bases? The answer lies in what happens when we count up to the maximum number that the numbering system allows. In base 10, we can count from 0 to 9, that is,10 digits.
  • #7: 1 Write down the binary number and list the powers of 2 from right to left. Let's say we want to convert the binary number 100110112 to decimal. First, write it down. Then, write down the powers of two from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. Stop when the amount of elements in the list is equal to the amount of digits in the binary number. The example number, 10011011, has eight digits, so the list, with eight elements, would look like this: 128, 64, 32, 16, 8, 4, 2, 1
  • #8: 2 Write the digits of the binary number below their corresponding powers of two. Now, just write 10011011 below the numbers 128, 64, 32, 16, 8, 4, 2, and 1 so that each binary digit corresponds with its power of two. The "1" to the right of the binary number should correspond with the "1" on the right of the listed powers of two, and so on. You can also write the binary digits above the powers of two, if you prefer it that way. What's important is that they match up.
  • #9: 3 Connect the digits in the binary number with their corresponding powers of two. Draw lines, starting from the right, connecting each consecutive digit of the binary number to the power of two that is next in the list above it. Begin by drawing a line from the first digit of the binary number to the first power of two in the list above it. Then, draw a line from the second digit of the binary number to the second power of two in the list. Continue connecting each digit with its corresponding power of two. This will help you visually see the relationship between the two sets of numbers.
  • #10: 4 Write down the final value of each power of two. Move through each digit of the binary number. If the digit is a 1, write its corresponding power of two below the line, under the digit. If the digit is a 0, write a 0 below the line, under the digit. Since "1" corresponds with "1", it becomes a "1." Since "2" corresponds with "1," it becomes a "2." Since "4" corresponds with "0," it becomes "0." Since "8" corresponds with "1", it becomes "8," and since "16" corresponds with "1" it becomes "16." "32" corresponds with "0" and becomes "0" and "64" corresponds with "0" and therefore becomes "0" while "128" corresponds with "1" and becomes 128.
  • #11: 5 Add the final values. Now, add up the numbers written below the line. Here's what you do: 128 + 0 + 0 + 16 + 8 + 0 + 2 + 1 = 155. This is the decimal equivalent of the binary number 10011011.
  • #12: 6 Write the answer along with its base subscript. Now, all you have to do is write 15510, to show that you are working with a decimal answer, which must be operating in powers of 10. The more you get used to converting from binary to decimal, the more easy it will be for you to memorize the powers of two, and you'll be able to complete the task more quickly.
  • #13: 1 Write down the binary number. This method does not use powers. As such, it is simpler for converting large numbers in your head because you only need to keep track of a subtotal. The first thing you need to of is to write down the binary number you'll be converting using the doubling method. Let's say the number you're working with is 10110012. Write it down.
  • #14: 2 Starting from the left, double your previous total and add the current digit.Since you're working with the binary number 10110012, your first digit all the way on the left is 1. Your previous total is 0 since you haven't started yet. You'll have to double the previous total, 0, and add 1, the current digit. 0 x 2 + 1 = 1, so your new current total is 1.
  • #15: 3 Double your current total and add the next leftmost digit. Your current total is now 1 and the new current digit is 0. So, double 1 and add 0. 1 x 2 + 0 = 2. Your new current total is 2.
  • #16: 4 Repeat the previous step. Just keep going. Next, double your current total, and add 1, your next digit. 2 x 2 + 1 = 5. Your current total is now 5.
  • #17: 5 Repeat the previous step again. Next, double your current total, 5, and add the next digit, 1. 5 x 2 + 1 = 11. Your new total is 11.
  • #18: 6 Repeat the previous step again. Double your current total, 11, and add the next digit, 0. 2 x 11 + 0 = 22.
  • #19: 7 Repeat the previous step again. Now, double your current total, 22, and add 0, the next digit. 22 x 2 + 0 = 44.
  • #20: 8 Continue doubling your current total and adding the next digit until you've run out of digits. Now, you're down to your last number and are almost done! All you have to do is take your current total, 44, and double it along with adding 1, the last digit. 2 x 44 + 1 = 89. You're all done! You've converted 100110112 to decimal notation to its decimal form, 89.
  • #21: 9 Write the answer along with its base subscript. Write your final answer as 8910 to show that you're working with a decimal, which has a base of 10.
  • #23: Practice. Try converting the binary numbers 110100012, 110012, and 111100012. Respectively, their decimal equivalents are 20910, 2510, and 24110.