SlideShare a Scribd company logo
1 of 12
 
Decimal Numbers In every day life we use  10  decimal numbers to represent numerical data 0  1  2  3  4  5  6  7  8  9 The number  42678  can be read as ten thousands 10 4 thousands 10 3 hundreds 10 2 tens 10 1 units 10 0 4 2 6 7 8 The number that forms the basis of any system is called the  base . So the decimal number system is called  base 10 .
The Binary Number System The lowest number base that can be used to represent numbers is  base 2 . Using only two numbers to represent what happens inside a computer is called the  binary system . on = 1 bit off = 0 bit
Why design computers as 2 state devices? 1. Simplicity in only having to generate and detect two voltage levels. 2. Good tolerance, because a degraded positive voltage (1 bit) is still recognisable as a positive voltage
Why design computers as 2 state devices? 3. Calculations are kept simple.  There are  four  rules for addition / subtraction / multiplication /  division in the binary number system. There are  one hundred  rules for addition / subtraction / multiplication /  division in the decimal number system.
Why design computers as 2 state devices? 4. Magnetic and optical media are suited to two state systems.
Binary Numbers We have seen that the number  42678  can be represented as: 10 4 10 3 10 2 10 1 10 0 4 2 6 7 8 Binary (base 2) works in a similar way. The binary number  1 1 0 0 1  can be represented as: 2 4 2 3 2 2 2 1 2 0 1 1 0 1 1 Or 16 8 4 2 1 1 1 0 1 1
Converting Binary Numbers to Decimal The binary number  1 1 0 0 1 16 8 4 2 1 1 1 0 0 1 = ( 1  * 16) + ( 1  * 8) + ( 0  * 4)  + ( 0  * 2) + ( 1  * 1)  = 16 + 8 + 0 + 0 + 1 = 25
Converting a Byte to Decimal The term bit is short for  b inary dig it A byte is made up of  8  bits The byte  1 0 1 0 1 1 0 1  can be converted to decimal as: 16 8 4 2 1 1 0 1 0 1 1 0 1 = ( 1  * 128) + ( 1  * 32) + ( 1  * 8) + ( 1  * 4)  + ( 1  * 1)  = 128 + 32 + 8 + 4 + 1 = 173 32 64 128
Converting Decimal Numbers to Binary Example: Convert  86  to binary 128 0 Next  64 . Does  64  go into 86? Yes. 128 64 0 1 Subtract the  64  from 86, leaving 22.  Next  32 . Does  32  go into the remaining 22? No  128 64 32 0 1 0 Start with  128 . Does  128  go into 86? No.
Converting Decimal Numbers to Binary 128 64 32 16 0 1 0 1 Next  16 . Does  16  go into 22? Yes. Subtract the  16  from 22, leaving 6.  Next  8 . Does  8  go into the remaining 6? No  128 64 32 16 8 0 1 0 1 0 Next  4 . Does  4  go into the remaining 6? Yes Subtract  4  from 6, leaving 2. Next  2 . Does  2  go into the remaining 2? Yes Subtract  2  from 2, leaving 0. Finally  1 . Does  1  go into the remaining 0? No 128 64 32 16 8 4 2 1 0 1 0 1 0 1 1 0
Credits ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operationsBCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operationsDhananjaysinh Jhala
 
CCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, BinaryCCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, BinaryRichard Homa
 
Number systems
Number systemsNumber systems
Number systemsKalaTecno
 
Converting denary binary
Converting denary binaryConverting denary binary
Converting denary binaryysolanki78
 
Binary numbers
Binary numbersBinary numbers
Binary numbersatcnerd
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Abhay kadu
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemRai University
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Binary Review
Binary ReviewBinary Review
Binary Reviewswascher
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentationSnehalataAgasti
 
Easy how to work subnet etc
Easy how to work subnet etcEasy how to work subnet etc
Easy how to work subnet etcTanya Lo
 

What's hot (16)

BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operationsBCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
 
CCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, BinaryCCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, Binary
 
Number systems
Number systemsNumber systems
Number systems
 
Converting denary binary
Converting denary binaryConverting denary binary
Converting denary binary
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
 
Twos complement
Twos complementTwos complement
Twos complement
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Binary Review
Binary ReviewBinary Review
Binary Review
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Binary
BinaryBinary
Binary
 
Easy how to work subnet etc
Easy how to work subnet etcEasy how to work subnet etc
Easy how to work subnet etc
 

Viewers also liked

Viewers also liked (6)

ISDD Database Structure N5
ISDD Database Structure N5ISDD Database Structure N5
ISDD Database Structure N5
 
ISDD Database Keys N5
ISDD Database Keys N5ISDD Database Keys N5
ISDD Database Keys N5
 
N5 ISDD Testing
N5 ISDD TestingN5 ISDD Testing
N5 ISDD Testing
 
N5 ISDD Hardware Requirements
N5 ISDD Hardware RequirementsN5 ISDD Hardware Requirements
N5 ISDD Hardware Requirements
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
N5 ISDD Software Requirements
N5 ISDD Software RequirementsN5 ISDD Software Requirements
N5 ISDD Software Requirements
 

Similar to Representation of Positive Numbers

Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Datagavhays
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representationiarthur
 
Network Slides
Network SlidesNetwork Slides
Network Slidesiarthur
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010iarthur
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representationekul
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data RepresentationKyle
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16John Todora
 
Bits and the organization of memory
Bits and the organization of memoryBits and the organization of memory
Bits and the organization of memorydmendonsa
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersS Khawaja
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Pptekul
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems PptNaruin
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems PptKyle
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systemsmrsmackenzie
 

Similar to Representation of Positive Numbers (20)

Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
 
Network Slides
Network SlidesNetwork Slides
Network Slides
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
Number system
Number systemNumber system
Number system
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Bits and the organization of memory
Bits and the organization of memoryBits and the organization of memory
Bits and the organization of memory
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for Starters
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
 

More from Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Recently uploaded

Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Celine George
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdfVikramadityaRaj
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...Krashi Coaching
 

Recently uploaded (20)

Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 

Representation of Positive Numbers

  • 1.  
  • 2. Decimal Numbers In every day life we use 10 decimal numbers to represent numerical data 0 1 2 3 4 5 6 7 8 9 The number 42678 can be read as ten thousands 10 4 thousands 10 3 hundreds 10 2 tens 10 1 units 10 0 4 2 6 7 8 The number that forms the basis of any system is called the base . So the decimal number system is called base 10 .
  • 3. The Binary Number System The lowest number base that can be used to represent numbers is base 2 . Using only two numbers to represent what happens inside a computer is called the binary system . on = 1 bit off = 0 bit
  • 4. Why design computers as 2 state devices? 1. Simplicity in only having to generate and detect two voltage levels. 2. Good tolerance, because a degraded positive voltage (1 bit) is still recognisable as a positive voltage
  • 5. Why design computers as 2 state devices? 3. Calculations are kept simple. There are four rules for addition / subtraction / multiplication / division in the binary number system. There are one hundred rules for addition / subtraction / multiplication / division in the decimal number system.
  • 6. Why design computers as 2 state devices? 4. Magnetic and optical media are suited to two state systems.
  • 7. Binary Numbers We have seen that the number 42678 can be represented as: 10 4 10 3 10 2 10 1 10 0 4 2 6 7 8 Binary (base 2) works in a similar way. The binary number 1 1 0 0 1 can be represented as: 2 4 2 3 2 2 2 1 2 0 1 1 0 1 1 Or 16 8 4 2 1 1 1 0 1 1
  • 8. Converting Binary Numbers to Decimal The binary number 1 1 0 0 1 16 8 4 2 1 1 1 0 0 1 = ( 1 * 16) + ( 1 * 8) + ( 0 * 4) + ( 0 * 2) + ( 1 * 1) = 16 + 8 + 0 + 0 + 1 = 25
  • 9. Converting a Byte to Decimal The term bit is short for b inary dig it A byte is made up of 8 bits The byte 1 0 1 0 1 1 0 1 can be converted to decimal as: 16 8 4 2 1 1 0 1 0 1 1 0 1 = ( 1 * 128) + ( 1 * 32) + ( 1 * 8) + ( 1 * 4) + ( 1 * 1) = 128 + 32 + 8 + 4 + 1 = 173 32 64 128
  • 10. Converting Decimal Numbers to Binary Example: Convert 86 to binary 128 0 Next 64 . Does 64 go into 86? Yes. 128 64 0 1 Subtract the 64 from 86, leaving 22. Next 32 . Does 32 go into the remaining 22? No 128 64 32 0 1 0 Start with 128 . Does 128 go into 86? No.
  • 11. Converting Decimal Numbers to Binary 128 64 32 16 0 1 0 1 Next 16 . Does 16 go into 22? Yes. Subtract the 16 from 22, leaving 6. Next 8 . Does 8 go into the remaining 6? No 128 64 32 16 8 0 1 0 1 0 Next 4 . Does 4 go into the remaining 6? Yes Subtract 4 from 6, leaving 2. Next 2 . Does 2 go into the remaining 2? Yes Subtract 2 from 2, leaving 0. Finally 1 . Does 1 go into the remaining 0? No 128 64 32 16 8 4 2 1 0 1 0 1 0 1 1 0
  • 12.