SlideShare a Scribd company logo
1 of 47
BINARY : COUNTING TO 1 Computer Sciences NRHS
Simple Math First … ONES TENS HUNDREDS THOUSANDS X  10 X  10 X  10 BASE 10 3 6 5 9
BASE 10 = TEN DIGITS 1 2 3 4 5 6 7 8 9 0
3659 = ,[object Object],[object Object],[object Object],[object Object],NOTE: Numbers are always broken down from right to left.
Binary… 1 4 8 X  2 X  2 X  2 BASE 2 2 BIT 0 0 0 0
BINARY IS LIKE A LIGHT SWITCH 0 = OFF 1 = ON
What number is this? 1 4 8 Answer: 0 2 0 0 0 0
What number is this? 1 4 8 Answer: 1 2 0 0 0 1
What number is this? 1 4 8 Answer: 2 2 0 0 1 0
What number is this? 1 4 8 Answer: 4 2 0 1 0 0
What number is this? 1 4 8 Answer: 8 2 1 0 0 0
What number is this? 1 4 8 Answer: 9 2 1 0 0 1
What number is this? 1 4 8 Answer: 10 2 1 0 1 0
What number is this? 1 4 8 Answer: 6 2 0 1 1 0
8 Bits = 1 Byte 16 32 64 128 What is the highest possible number in one Byte? 255 8 4 2 1
What number is this? 16 32 64 128 Answer: 170 8 4 2 1 1 0 1 0 1 0 1 0
What number is this? 16 32 64 128 Answer: 85 8 4 2 1 0 1 0 1 0 1 0 1
What number is this? 16 32 64 128 Answer: 217 8 4 2 1 1 1 0 1 1 0 0 1
How do Bytes add up?
CD ROM = up to 900 MB DVD ROM = up to 4.7 GB Average MP3 = 1.5 MB
Converting Binary to Base10
Let’s Start With ½ a Byte  (aka Nibble) How do you know that this number is 13? 8 4 2 1 1 1 0 1
Determine which are “on” and which are “off” First, you ignore the numbers that are turned off. 8 4 2 1 1 1 0 1
Create the Equation Then, you add together the numbers that are turned on. + + + 8 4 2 1 1 1 0 1
Do the Equation The equation is … 8+4+1 = 13 + + + 8 4 2 1 1 1 0 1
Convert from Base10 to Binary How do you find the binary for 14? 8 4 2 1
Start with the Largest Number on the Left Ask: Does 8 go into 14? If YES … put a 1 in that box to turn it “on”. 1 8 4 2 1
Subtract to get the Remainder 14-8=6 1 8 4 2 1
Move to the next largest number Ask: Does 4 go into 6? If YES … put a 1 in that box to turn it “on”. 1 1 8 4 2 1
Subtract to get the Remainder 6-4=2 1 1 8 4 2 1
Move to the next largest number Ask: Does 2 go into 2? If YES … put a 1 in that box to turn it “on”. 1 1 1 8 4 2 1
Subtract to get the Remainder 2-2=0 1 1 1 8 4 2 1
Move to the next largest number Ask: Does 1 go into 0? If NO… put a 0 in that box to turn it “off”. 1 1 1 0 8 4 2 1
Now Let’s Do a Byte 16 32 64 128 What is the first step to find out what binary is for 235? 8 4 2 1
Start with the Largest Number on the Left 16 32 64 128 Does 128 go into 235? 235-128 = 107 YES! Turn 128 “on” 1 8 4 2 1
Move one number to the right 16 32 64 128 Does 64 go into 107? 107-64 = 43 YES! Turn 64“on” 1 1 8 4 2 1
Move one number to the right 16 32 64 128 Does 32 go into 43? 43-32= 11 YES! Turn 32“on” 1 1 1 8 4 2 1
Move one number to the right 16 32 64 128 Does 16 go into 11? 11-16= NO NO! Turn 16 “off” 1 1 1 0 8 4 2 1
Move one number to the right 16 32 64 128 Does 8 go into 11? 11-8= 3 YES! Turn 8 “on” 1 1 1 0 1 8 4 2 1
Move one number to the right 16 32 64 128 Does 4 go into 3? 3-4= NO NO! Turn 4 “off” 1 1 1 0 1 0 8 4 2 1
Move one number to the right 16 32 64 128 Does 2 go into 3? 3-2= 1 YES! Turn 2 “on” 1 1 1 0 1 0 1 8 4 2 1
Move one number to the right 16 32 64 128 Does 1 go into 1? 1-1= 0 YES! Turn 1 “on” 1 1 1 0 1 0 1 1 8 4 2 1
Move one number to the right 16 32 64 128 235 in Binary! 1 1 1 0 1 0 1 1 8 4 2 1
Numbers Larger than 255
How do you get the number 270? ,[object Object],[object Object],[object Object],[object Object],[object Object]
Make a Table 1 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2
Get Rid of All Numbers Larger than the One You Are Trying To Convert (they become 0s) 1 256 128 64 32 16 8 4 2 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0

More Related Content

What's hot (10)

Ikan3
Ikan3Ikan3
Ikan3
 
Divisibility Rules
Divisibility RulesDivisibility Rules
Divisibility Rules
 
Binary numbers-7-12-2011
Binary numbers-7-12-2011Binary numbers-7-12-2011
Binary numbers-7-12-2011
 
Integers jeopardy
Integers jeopardyIntegers jeopardy
Integers jeopardy
 
Integers jeopardy
Integers jeopardyIntegers jeopardy
Integers jeopardy
 
TUTORIAL ON MASTERMIND CODEBREAKING STRATEGY
TUTORIAL ON MASTERMIND CODEBREAKING STRATEGYTUTORIAL ON MASTERMIND CODEBREAKING STRATEGY
TUTORIAL ON MASTERMIND CODEBREAKING STRATEGY
 
Number System and Boolean Algebra
Number System and Boolean AlgebraNumber System and Boolean Algebra
Number System and Boolean Algebra
 
Math vocab 1
Math vocab 1Math vocab 1
Math vocab 1
 
Factors and multiples ppt Class 3
Factors and multiples ppt Class 3Factors and multiples ppt Class 3
Factors and multiples ppt Class 3
 
5.2 Numbering systems
5.2 Numbering systems5.2 Numbering systems
5.2 Numbering systems
 

Similar to Binary

Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
Abhay kadu
 
Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
gavhays
 
Multiplying-and-Dividing-Decimals.ppt
Multiplying-and-Dividing-Decimals.pptMultiplying-and-Dividing-Decimals.ppt
Multiplying-and-Dividing-Decimals.ppt
RoseAnnStaAna5
 

Similar to Binary (20)

Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systems
 
Representation of Positive Numbers
Representation of Positive NumbersRepresentation of Positive Numbers
Representation of Positive Numbers
 
Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
 
Unit 3 Data Representation
Unit 3 Data RepresentationUnit 3 Data Representation
Unit 3 Data Representation
 
Number bases
Number basesNumber bases
Number bases
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
 
Number System
Number SystemNumber System
Number System
 
12.1
12.112.1
12.1
 
Parallel adders
Parallel addersParallel adders
Parallel adders
 
Multiplying-and-Dividing-Decimals.ppt
Multiplying-and-Dividing-Decimals.pptMultiplying-and-Dividing-Decimals.ppt
Multiplying-and-Dividing-Decimals.ppt
 
Multiplying and dividing decimals
Multiplying and dividing decimalsMultiplying and dividing decimals
Multiplying and dividing decimals
 
Binary
BinaryBinary
Binary
 
Ncp computer appls num sys1 pramod
Ncp computer appls  num sys1 pramodNcp computer appls  num sys1 pramod
Ncp computer appls num sys1 pramod
 
Introduction to binary
Introduction to binaryIntroduction to binary
Introduction to binary
 
Number system
Number systemNumber system
Number system
 
L 14 birds come ,birds go
L 14 birds come ,birds goL 14 birds come ,birds go
L 14 birds come ,birds go
 
01 intro
01 intro01 intro
01 intro
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 

Binary

  • 1. BINARY : COUNTING TO 1 Computer Sciences NRHS
  • 2. Simple Math First … ONES TENS HUNDREDS THOUSANDS X 10 X 10 X 10 BASE 10 3 6 5 9
  • 3. BASE 10 = TEN DIGITS 1 2 3 4 5 6 7 8 9 0
  • 4.
  • 5. Binary… 1 4 8 X 2 X 2 X 2 BASE 2 2 BIT 0 0 0 0
  • 6. BINARY IS LIKE A LIGHT SWITCH 0 = OFF 1 = ON
  • 7. What number is this? 1 4 8 Answer: 0 2 0 0 0 0
  • 8. What number is this? 1 4 8 Answer: 1 2 0 0 0 1
  • 9. What number is this? 1 4 8 Answer: 2 2 0 0 1 0
  • 10. What number is this? 1 4 8 Answer: 4 2 0 1 0 0
  • 11. What number is this? 1 4 8 Answer: 8 2 1 0 0 0
  • 12. What number is this? 1 4 8 Answer: 9 2 1 0 0 1
  • 13. What number is this? 1 4 8 Answer: 10 2 1 0 1 0
  • 14. What number is this? 1 4 8 Answer: 6 2 0 1 1 0
  • 15. 8 Bits = 1 Byte 16 32 64 128 What is the highest possible number in one Byte? 255 8 4 2 1
  • 16. What number is this? 16 32 64 128 Answer: 170 8 4 2 1 1 0 1 0 1 0 1 0
  • 17. What number is this? 16 32 64 128 Answer: 85 8 4 2 1 0 1 0 1 0 1 0 1
  • 18. What number is this? 16 32 64 128 Answer: 217 8 4 2 1 1 1 0 1 1 0 0 1
  • 19. How do Bytes add up?
  • 20. CD ROM = up to 900 MB DVD ROM = up to 4.7 GB Average MP3 = 1.5 MB
  • 22. Let’s Start With ½ a Byte (aka Nibble) How do you know that this number is 13? 8 4 2 1 1 1 0 1
  • 23. Determine which are “on” and which are “off” First, you ignore the numbers that are turned off. 8 4 2 1 1 1 0 1
  • 24. Create the Equation Then, you add together the numbers that are turned on. + + + 8 4 2 1 1 1 0 1
  • 25. Do the Equation The equation is … 8+4+1 = 13 + + + 8 4 2 1 1 1 0 1
  • 26. Convert from Base10 to Binary How do you find the binary for 14? 8 4 2 1
  • 27. Start with the Largest Number on the Left Ask: Does 8 go into 14? If YES … put a 1 in that box to turn it “on”. 1 8 4 2 1
  • 28. Subtract to get the Remainder 14-8=6 1 8 4 2 1
  • 29. Move to the next largest number Ask: Does 4 go into 6? If YES … put a 1 in that box to turn it “on”. 1 1 8 4 2 1
  • 30. Subtract to get the Remainder 6-4=2 1 1 8 4 2 1
  • 31. Move to the next largest number Ask: Does 2 go into 2? If YES … put a 1 in that box to turn it “on”. 1 1 1 8 4 2 1
  • 32. Subtract to get the Remainder 2-2=0 1 1 1 8 4 2 1
  • 33. Move to the next largest number Ask: Does 1 go into 0? If NO… put a 0 in that box to turn it “off”. 1 1 1 0 8 4 2 1
  • 34. Now Let’s Do a Byte 16 32 64 128 What is the first step to find out what binary is for 235? 8 4 2 1
  • 35. Start with the Largest Number on the Left 16 32 64 128 Does 128 go into 235? 235-128 = 107 YES! Turn 128 “on” 1 8 4 2 1
  • 36. Move one number to the right 16 32 64 128 Does 64 go into 107? 107-64 = 43 YES! Turn 64“on” 1 1 8 4 2 1
  • 37. Move one number to the right 16 32 64 128 Does 32 go into 43? 43-32= 11 YES! Turn 32“on” 1 1 1 8 4 2 1
  • 38. Move one number to the right 16 32 64 128 Does 16 go into 11? 11-16= NO NO! Turn 16 “off” 1 1 1 0 8 4 2 1
  • 39. Move one number to the right 16 32 64 128 Does 8 go into 11? 11-8= 3 YES! Turn 8 “on” 1 1 1 0 1 8 4 2 1
  • 40. Move one number to the right 16 32 64 128 Does 4 go into 3? 3-4= NO NO! Turn 4 “off” 1 1 1 0 1 0 8 4 2 1
  • 41. Move one number to the right 16 32 64 128 Does 2 go into 3? 3-2= 1 YES! Turn 2 “on” 1 1 1 0 1 0 1 8 4 2 1
  • 42. Move one number to the right 16 32 64 128 Does 1 go into 1? 1-1= 0 YES! Turn 1 “on” 1 1 1 0 1 0 1 1 8 4 2 1
  • 43. Move one number to the right 16 32 64 128 235 in Binary! 1 1 1 0 1 0 1 1 8 4 2 1
  • 45.
  • 46. Make a Table 1 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2
  • 47. Get Rid of All Numbers Larger than the One You Are Trying To Convert (they become 0s) 1 256 128 64 32 16 8 4 2 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0