Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”

Slides:



Advertisements
Similar presentations
BITS, BYTES, AND THE BINARY SYSTEM HOW PROGRAMS CREATE IMAGES ON YOUR PC.
Advertisements

Objective: To convert numbers into standard index form
QUICK MATH REVIEW & TIPS 2
QUICK MATH REVIEW & TIPS 1
Unit 7, Lesson 2 The Area Model for Multiplication “What do you mean, it’s the wrong kind of right?”
Solving Linear Equations
Building Number Place Value. You are going to recap or learn: How to read and write large numbers written in digits. How to compare and order whole numbers.
DECIMALS Place Value Ordering Decimals Nearest and significant figures
15 Minute Math This presentation will review different math skills that will help you with every day math problems. Each lesson takes approximately 15.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Exponents Scientific Notation
Fractions & Decimals.
An introduction to Binary. Binary is the language used by computers. It uses 0 and 1 to represent different numbers.
Binary Arithmetic Math For Computers.
Created by L. Henderson. 3 x 4 = 12 factor factor product.
Solving a System of Equations using Multiplication
2 © 2003, Cisco Systems, Inc. All rights reserved. RST-2002 IP Addressing.
The Binary Number System Emily Beck and Susan Cantrell.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Scientific Notation.
Scientific Notation Recognize and use scientific notation.
Place Value from Millions to Thousandths
Unit 1 (Chapter 5): Significant Figures
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Place value and ordering
IT253: Computer Organization
Regrouping: Also known as FUNNY NUMBERS! How would you write 5 ones?5 x 1 = 5 How would you write 9 ones? 9 x 1 = 9 How would you write 11 ones? 11 x 1.
Binary Arithmetic In today’s lesson we will look at: a reminder of how binary works adding binary numbers overflow complements negative numbers and subtraction.
Understanding Whole Numbers Lesson 1-1. Vocabulary standard form – a number is written using digits and place value (the regular way to write numbers).
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Decimals Mr. Walker. What is a Decimal? It is a dot after a number. Every whole number has a decimal on the end, even if it is not shown. A decimal means.
Xmania!.
Scientific Notation. A number is in scientific notation when There is a number (I’ll call “n”) that is bigger than or equal to one, but less than ten.
Binary, Hexadecimal, Decimal, and How They Relate.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
CS101 Learning Binary Learning Binary What do you think when you see One hundred and one What does a computer think when it sees 101? 5.
Visualizing Decimal and Binary
Warm-up, 3/28 Compute: 1. 2 x 2 x 2 x 2 = 2. 3 x 3 x 3 = 3. 2 x 2 x 3 x 3 x 3 = 4. 5 x 5 x 2 x 2 = 5. 2 x 2 x 4 =
Math 5 Using Exponents to Write Numbers
????????? x x x x x What do the numbers to the left have in common? They all start with a number.
Engage NY Module 14 Lesson 14- Objective: Divide decimals with a remainder using place value understanding and relate to a written method.
 Addition 6+4=10  Subtraction 36-10=26  Multiplication 5X6=30  Division 60÷10=6.
Decimals What is a decimal? Do you know?. A decimal is… Written just like a period Part of a whole.
Binary & Normalization What is Normalization? We discussed this the other day (special review session slides, near the end) Can someone tell us.
Chapter 1 Whole Numbers Digit – number from 0-9
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
called supernaturally
Chapter 1: Arithmetic & Prealgebra
Unit 1: Matter, Measurement, and unit conversions
Decimals.
Multiplying and Dividing by Powers of 10
Discrete Mathematics Numbering System.
Exponents Scientific Notation
COMPUTING FUNDAMENTALS
Number Systems & Binary
Tools of Web Development 1: Module A: Numbering Systems
Visualizing Decimal and Binary
Decimals Pages 60 – 95.
called supernaturally
CS101 Learning Binary Learning Binary.
This lesson explains how to read and work with decimals.
15 Minute Math This presentation will review different math skills that will help you with every day math problems. Each lesson takes approximately 15.
called supernaturally
Scientific Notation.
Multiplying and Dividing by Powers of 10
called supernaturally
Scientific Notation 8th Grade.
Presentation transcript:

Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”

What is binary? You and I write numbers like this: twelve is 12, sixty eight is 68, and one hundred is 100 Binary is a number system that computers use. That is, binary is the way that computers express numbers. It’s good to know binary because it helps us understand how computers think

Base-10 Our number system is made up of ten digits (0, 1, 2….9)….that’s why it’s called base-10. We use those ten digits to express any number we want! But how do we do this when there are only 10 of them?

Places We use the idea of places When we see a number, their order tells us how much each digit is worth Example: 121 The FIRST 1 is worth 100, because it is in the hundreds place. The 2 is worth 20, because it is in the tens place and 2 x 10 is 20. The SECOND 1 is only worth 1, because it is in the ones place.

Places What are the first few places in our number system? Ones, tens, hundreds, thousands, ten thousands, hundred thousands, millions, etc… Do you notice any patterns here? Each one is ten times bigger than the one before it! In other words, we use powers of ten to define our number system

Exponents Because every place is ten times larger than the one before it, we can use exponents to describe its value Ones place: 1 = 100 100 may look a little confusing, but just remember that numbers in the ones place don’t need to be multiplied by ten. A 9 in the ones place is just 9! Tens place: 10 = 101 Hundreds place: 100 = 10 x 10 = 102 Thousands place: 1000 = 10 x 10 x 10 = 103 And so on!

Base-10 Example 6 8 3 4 1000’s place 6 x 103 100’s place 8 x 102 10’s place 3 x 101 1’s place 4 x 100 So the number 6834 is made up of six 1000s, eight 100s, three 10s, and four 1s. In other words… 6834 = (6 x 1000) + (8 x 100) + (3 x 10) + (4 x 1)

What is binary?? Binary is just like our number system…. Except it only uses two digits! The only digits in binary are 0 and 1 In base-10 (the normal number system), any number bigger than 9 needs more than one digit. In binary, any number bigger than 1 needs more than one digit.

Powers of 2!  Exponents in Binary There are ten possible digits in the Base-10 number system (0 to 9). Powers of 10 are used to decide the places values. If binary only has two possible digits, what do you think is used to decide the values of its places? Powers of 2! 

Exponents in Binary Ones place: 1 = 20 Twos place: 2 = 21 Fours place: 4 = 2 x 2 = 22 Eights place: 8 = 2 x 2 x 2 = 23 And so on!

1 0 1 0 Binary Example System 1 x 23 0 x 22 1 x 21 0 x 20 1 0 1 0 What is 1010 equal to in the base-10 number system? 8’s place 1 x 23 4’s place 0 x 22 2’s place 1 x 21 1’s place 0 x 20 So the number 1010 in BINARY is made up of one 8, zero 4s, one 2, and zero 1s. 1010 is binary for (1 x 8) + (0 x 4) + (1 x 2) + (0 x 1)

Let’s Count! Are there any patterns that you notice? …in Base-10 …in Binary 0 1 2 3 4 5 6 7 8 9 10 0 1 10 11 100 101 110 111 1000 1001 1010 Are there any patterns that you notice?

Converting Base-10 to Binary! Let’s convert the number 25 to binary! First we need to find the largest binary digit that has a value less than 25. In this case it is 24: 16 25 wouldn’t work because it is 32, which is bigger than 25. So now we know that the largest binary digit for this number will be the 16’s place.

Converting Base-10 to Binary! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place 24 23 22 21 20 We chose the 16’s place to be our first digit because 16 is the largest number that can fit inside 25. So we put a 1 in the 16’s place, indicating that 16 is part of our number.

Converting Base-10 to Binary! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place So, now 16 out of our total 25 is accounted for. Let’s take care of the remainder. 25 – 16 = 9 Now we go to the next digit, the 8’s place. Does an 8 fit inside 9 – our remainder? Yes it does!!

Converting Base-10 to Binary! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place Now 8 out of the remainder 9 is taken care of. 9 – 8 = 1 Does the next digit – the 4’s place – fit inside this remainder? Nope! So, we have to put a 0 at the 4’s place because 1 is smaller than 4.

Converting Base-10 to Binary! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place Let’s see if the next digit can take care of our remainder (which is still 1). The next digit is the 2’s place. Can this digit fit inside our remainder? No, it can’t either, because 1 is smaller than 2. We have to put a 0 here too.

Converting Base-10 to Binary! 1 ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place One last try to get rid of our remainder (still 1)! The last thing we have is the 1’s place. Can a 1 fit inside our remainder? Yes! 1 is equal to 1! We have no remainder left now, because 1 – 1 = 0! We’re done!

Converting Binary into Base-10! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place 1 Now let’s convert our number back! All we have to do is take each binary digit, and figure out how much it is worth in base-10. 0 means that the digit doesn’t add anything to our number 1 means it adds the value of the place it’s in This way is easier!

Converting Binary into Base-10! ____ ____ ____ ____ ____ 16’s place 8’s place 4’s place 2’s place 1’s place 1 16 1 in the 16’s place. Add 16. 1 in the 8’s place. Add 8. 0 in the 4’s place. Nothing added 0 in the 2’s place. Nothing added 1 in the 1’s place. Add 1. 8 +1 25 TOTAL:

Practice! Is the following number written in binary form? 121011 No! Binary only has 1s and 0s.

Practice! What is this binary number in the base-10 system? 111 It is (4 x 1) + (2 x 1) + (1 x 1), which is 7!

Practice! What is this base-10 number in binary? 14 14 has 1 eight, 1 four, 1 two, and 0 ones. So it’s 1110!

Practice! What is this base-10 number in binary? 11 11 has 1 eight, 0 fours, 1 two, and 1 one. So it’s 1011!

Why does binary matter?? A computer has many switches inside it that tell it what to do. The computer will do different things, depending on which ones are switched ON and which are OFF. To a computer, an ON switch is represented by 1 and an OFF switch is represented by 0.

Why does anyone use binary?? Because computers only understand things in terms of ON and OFF, a system with only two options for digit values makes a lot sense (OFF = 0, ON = 1). This makes it very easy for computers to express everything happening inside them as a bunch of 0s and 1s.

Why does anyone use binary?? ANYTHING you do on computer can be represented as a very long string of binary. There is a particular assortment of ON and OFF switches for everything you do on a computer. It sounds crazy until you realize there are a huge amount of switches in your computer – and SO many ways the whole system can be arranged. Actually, it still sounds pretty amazing!

0010101010100110001010101 0101010010010101001010100 1010010010111101011110010 0000011011010010101111100 0101010111100101010100010001010111101010100101010000010100101000010011111001010101010101010101010101 01011011110100010100101011010101101110000111100110

So remember… there are 10 types of people in this world: those that understand binary, and those that don’t!  Any questions??