SlideShare a Scribd company logo
1 of 26
DATA
REPRESENTATION IN
COMPUTERS
BINARY REPRESENTATION
OF DATA
•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
USING DOUBLING
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 Explained

More Related Content

What's hot

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer ArchitectureYong Heui Cho
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtErvishal bansal
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functionsmyrajendra
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computersKumar
 
Intro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageIntro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageJohn Goldsworthy
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary tcc_joemarie
 
Computer Components
Computer ComponentsComputer Components
Computer ComponentsBeth Sockman
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)Adeel Rasheed
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardwaremeryy21
 

What's hot (20)

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer Architecture
 
Number System in CoMpUtEr
Number System in CoMpUtErNumber System in CoMpUtEr
Number System in CoMpUtEr
 
Data Representation
Data RepresentationData Representation
Data Representation
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
Cpu and its functions
Cpu and its functionsCpu and its functions
Cpu and its functions
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 
Binary
BinaryBinary
Binary
 
Functional units
Functional unitsFunctional units
Functional units
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computers
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Intro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageIntro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and Storage
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary
 
Computer Components
Computer ComponentsComputer Components
Computer Components
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Cpu ppt cse
Cpu ppt cseCpu ppt cse
Cpu ppt cse
 
Introduction to computer system
Introduction to computer systemIntroduction to computer system
Introduction to computer system
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)
 
Software and hardware
Software and hardwareSoftware and hardware
Software and hardware
 

Viewers also liked

How computers represent data
How computers represent dataHow computers represent data
How computers represent dataShaon Ahmed
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representationekul
 
[1] Data Representation
[1] Data Representation[1] Data Representation
[1] Data RepresentationMr McAlpine
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representationritaester
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representationiarthur
 
Data representation moris mano ch 03
Data representation   moris mano ch  03Data representation   moris mano ch  03
Data representation moris mano ch 03thearticlenow
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data RepresentationPhillip Glenn Libay
 
Data communication and network Chapter -1
Data communication and network Chapter -1Data communication and network Chapter -1
Data communication and network Chapter -1Zafar Ayub
 
Hexadecimal numbers
Hexadecimal  numbersHexadecimal  numbers
Hexadecimal numbersatcnerd
 
Data representation
Data representationData representation
Data representationrozanadiana
 
Hexadecimal
HexadecimalHexadecimal
Hexadecimalwardjo
 

Viewers also liked (20)

How computers represent data
How computers represent dataHow computers represent data
How computers represent data
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
[1] Data Representation
[1] Data Representation[1] Data Representation
[1] Data Representation
 
Computer Data Representation
Computer Data RepresentationComputer Data Representation
Computer Data Representation
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Data representation
Data representationData representation
Data representation
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
 
Data representation moris mano ch 03
Data representation   moris mano ch  03Data representation   moris mano ch  03
Data representation moris mano ch 03
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
Data presentation 2
Data presentation 2Data presentation 2
Data presentation 2
 
Ppt on internet
Ppt on internetPpt on internet
Ppt on internet
 
Data communication and network Chapter -1
Data communication and network Chapter -1Data communication and network Chapter -1
Data communication and network Chapter -1
 
4_BIT_ALU
4_BIT_ALU4_BIT_ALU
4_BIT_ALU
 
The internet
The internetThe internet
The internet
 
Deep web
Deep webDeep web
Deep web
 
Internet
InternetInternet
Internet
 
Hexadecimal numbers
Hexadecimal  numbersHexadecimal  numbers
Hexadecimal numbers
 
Data representation
Data representationData representation
Data representation
 
Chap 2 network models
Chap 2 network modelsChap 2 network models
Chap 2 network models
 
Hexadecimal
HexadecimalHexadecimal
Hexadecimal
 

Similar to Data Representation in Computers Explained

TLE – ICT 8 Digital Mensuration II.pptx
TLE – ICT 8 Digital Mensuration II.pptxTLE – ICT 8 Digital Mensuration II.pptx
TLE – ICT 8 Digital Mensuration II.pptxjudechristopher3
 
DIGITAL REPRESENTATION.pptx
DIGITAL REPRESENTATION.pptxDIGITAL REPRESENTATION.pptx
DIGITAL REPRESENTATION.pptxRye Raine
 
Number systems
Number systemsNumber systems
Number systemsKalaTecno
 
Ch12- instruction sets- char & funct.pdf
Ch12- instruction sets- char & funct.pdfCh12- instruction sets- char & funct.pdf
Ch12- instruction sets- char & funct.pdfsaimawarsi
 
Computer-Number-Systems (1).ppt FCIT HG x
Computer-Number-Systems (1).ppt FCIT HG xComputer-Number-Systems (1).ppt FCIT HG x
Computer-Number-Systems (1).ppt FCIT HG xrawatsumit9902
 
CSS L03 - Mensuration and Calculation in CSS
CSS L03 - Mensuration and Calculation in CSSCSS L03 - Mensuration and Calculation in CSS
CSS L03 - Mensuration and Calculation in CSSMarvin Bronoso
 
CODING OF INFORMATION : sounds, images, printable & non printable data
CODING OF INFORMATION : sounds, images, printable & non printable dataCODING OF INFORMATION : sounds, images, printable & non printable data
CODING OF INFORMATION : sounds, images, printable & non printable dataTushar singh
 
Topic 1 - Introduction to Networking.pptx
Topic 1 - Introduction to Networking.pptxTopic 1 - Introduction to Networking.pptx
Topic 1 - Introduction to Networking.pptxMariaCrystalEOrozco
 
Chapter 2 computer system
Chapter 2 computer systemChapter 2 computer system
Chapter 2 computer systemmeisaina
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation Sanjay Singh
 
Carry out and perform calculation.pptx
Carry out and perform calculation.pptxCarry out and perform calculation.pptx
Carry out and perform calculation.pptxReynaldoTorres24
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxKaameshwaranKaameshw
 
CCNA 1 : introduction_to_networking
CCNA 1 : introduction_to_networkingCCNA 1 : introduction_to_networking
CCNA 1 : introduction_to_networkingeysipi
 

Similar to Data Representation in Computers Explained (20)

TLE – ICT 8 Digital Mensuration II.pptx
TLE – ICT 8 Digital Mensuration II.pptxTLE – ICT 8 Digital Mensuration II.pptx
TLE – ICT 8 Digital Mensuration II.pptx
 
DIGITAL REPRESENTATION.pptx
DIGITAL REPRESENTATION.pptxDIGITAL REPRESENTATION.pptx
DIGITAL REPRESENTATION.pptx
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Number systems
Number systemsNumber systems
Number systems
 
Ch12- instruction sets- char & funct.pdf
Ch12- instruction sets- char & funct.pdfCh12- instruction sets- char & funct.pdf
Ch12- instruction sets- char & funct.pdf
 
Computer-Number-Systems (1).ppt FCIT HG x
Computer-Number-Systems (1).ppt FCIT HG xComputer-Number-Systems (1).ppt FCIT HG x
Computer-Number-Systems (1).ppt FCIT HG x
 
CSS L03 - Mensuration and Calculation in CSS
CSS L03 - Mensuration and Calculation in CSSCSS L03 - Mensuration and Calculation in CSS
CSS L03 - Mensuration and Calculation in CSS
 
DLD-unit-1(2022).pdf
DLD-unit-1(2022).pdfDLD-unit-1(2022).pdf
DLD-unit-1(2022).pdf
 
CODING OF INFORMATION : sounds, images, printable & non printable data
CODING OF INFORMATION : sounds, images, printable & non printable dataCODING OF INFORMATION : sounds, images, printable & non printable data
CODING OF INFORMATION : sounds, images, printable & non printable data
 
Data representation
Data representationData representation
Data representation
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
Topic 1 - Introduction to Networking.pptx
Topic 1 - Introduction to Networking.pptxTopic 1 - Introduction to Networking.pptx
Topic 1 - Introduction to Networking.pptx
 
Chapter 2 computer system
Chapter 2 computer systemChapter 2 computer system
Chapter 2 computer system
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation
 
Carry out and perform calculation.pptx
Carry out and perform calculation.pptxCarry out and perform calculation.pptx
Carry out and perform calculation.pptx
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
 
CCNA 1 : introduction_to_networking
CCNA 1 : introduction_to_networkingCCNA 1 : introduction_to_networking
CCNA 1 : introduction_to_networking
 

More from Hazel Anne Quirao

More from Hazel Anne Quirao (20)

History of volleyball
History of volleyballHistory of volleyball
History of volleyball
 
Family and marriage
Family and marriageFamily and marriage
Family and marriage
 
The Five S’s (5S) of Good Housekeeping
The Five S’s (5S) of Good HousekeepingThe Five S’s (5S) of Good Housekeeping
The Five S’s (5S) of Good Housekeeping
 
Baroque period
Baroque periodBaroque period
Baroque period
 
Renaissance Period Literature
Renaissance Period LiteratureRenaissance Period Literature
Renaissance Period Literature
 
Death of King Arthur
Death of King ArthurDeath of King Arthur
Death of King Arthur
 
Lord Randall
Lord RandallLord Randall
Lord Randall
 
Canterbury Tales
Canterbury TalesCanterbury Tales
Canterbury Tales
 
Contribution of Priests in English Literature
Contribution of Priests in English LiteratureContribution of Priests in English Literature
Contribution of Priests in English Literature
 
Contribution of Knights in English Literature
Contribution of Knights in English LiteratureContribution of Knights in English Literature
Contribution of Knights in English Literature
 
The Ruined City
The Ruined CityThe Ruined City
The Ruined City
 
Beowulf
BeowulfBeowulf
Beowulf
 
Introduction on The Anglo Saxon Era
Introduction on The Anglo Saxon EraIntroduction on The Anglo Saxon Era
Introduction on The Anglo Saxon Era
 
COLLOIDS
COLLOIDSCOLLOIDS
COLLOIDS
 
The Properties of Matter
The Properties of MatterThe Properties of Matter
The Properties of Matter
 
ARALIN 2: Mga Pinagkukunang-yaman ng Pilipinas
ARALIN 2: Mga Pinagkukunang-yaman ng PilipinasARALIN 2: Mga Pinagkukunang-yaman ng Pilipinas
ARALIN 2: Mga Pinagkukunang-yaman ng Pilipinas
 
PC Building Precautions
PC Building PrecautionsPC Building Precautions
PC Building Precautions
 
Preparing to Build your own PC
Preparing to Build your own PCPreparing to Build your own PC
Preparing to Build your own PC
 
PC for Managers
PC for ManagersPC for Managers
PC for Managers
 
Booting Process
Booting ProcessBooting Process
Booting Process
 

Recently uploaded

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Recently uploaded (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

Data Representation in Computers Explained

  • 2.
  • 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 =
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 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

  1. 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.
  2. 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.
  3. 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
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 6 Repeat the previous step again. Double your current total, 11, and add the next digit, 0. 2 x 11 + 0 = 22.
  15. 7 Repeat the previous step again. Now, double your current total, 22, and add 0, the next digit. 22 x 2 + 0 = 44.
  16. 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.
  17. 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.
  18. Practice. Try converting the binary numbers 110100012, 110012, and 111100012. Respectively, their decimal equivalents are 20910, 2510, and 24110.