Binary
“There are 10 types of people in the world… those that understand binary and those that don’t.”
Binary There are 10 types of people in the world those that - - PowerPoint PPT Presentation
Binary There are 10 types of people in the world those that understand binary and those that dont. 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
“There are 10 types of people in the world… those that understand binary and those that don’t.”
sixty eight is 68, and one hundred is 100
express numbers.
understand how computers think
(0, 1, 2….9)….that’s why it’s called base-10.
number we want!
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)
system?
– Ones, tens, hundreds, thousands, ten thousands, hundred thousands, millions, etc…
before it!
number bigger than 9 needs more than one digit.
more than one digit.
number system (0 to 9).
values.
you think is used to decide the values of its places?
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
1010 is binary for (1 x 8) + (0 x 4) + (1 x 2) + (0 x 1)
What is 1010 equal to in the base-10 number system?
…in Base-10
1 2 3 4 5 6 7 8 9 10
…in Binary
1 10 11 100 101 110 111 1000 1001 1010
Are there any patterns that you notice?
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.
for this number will be the 16’s place.
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
16 is the largest number that can fit inside 25.
part of our number.
24 23 22 21 20
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
take care of the remainder.
fit inside 9 – our remainder?
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
remainder?
1 is smaller than 4.
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
remainder (which is still 1).
have to put a 0 here too.
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
inside our remainder?
how much it is worth in base-10.
number
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
TOTAL:
16 8 +1
____ ____ ____ ____ ____
16’s place 8’s place 4’s place 2’s place 1’s place
form? 121011
– No! Binary only has 1s and 0s.
system? 111
– It is (4 x 1) + (2 x 1) + (1 x 1), which is 7!
– 14 has 1 eight, 1 four, 1 two, and 0 ones. So it’s 1110!
– 11 has 1 eight, 0 fours, 1 two, and 1 one. So it’s 1011!
A computer has many switches inside it that tell it what to do.
The computer will do different things, depending on which
and which are OFF. To a computer, an ON switch is represented by 1 and an OFF switch is represented by 0.
Because computers only understand things in terms
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.
ANYTHING you do
be represented as a very long string
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!
So remember… there are 10 types of people in this world: those that understand binary, and those that don’t!