Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Binary2:54 with Joy Kesten
In order to talk to machines, you have to speak in their language. Machine language is usually represented in binary form. Binary is a numbering system that only uses the digits 0 and 1. When these numbers, 0 and 1 are arranged correctly they represent everything we do on the computer.
Binary Number Game (music begins automatically)
Unlike Decimals which use 10 as a base, Binary numbers are figured by multiples of 2.
Here's a mathematical tip for understanding Binary:
1 x 1 = 1
1 x 2 = 2
0 x 4 = 0
1 x 8 = 8
0 x 16 = 0
1 x 32 = 32
1 + 2 + 8 + 32 = 43
In order to talk to machines, you have to speak in their language.
Early on, we figured out ways to extract code from machine languages.
But, in order to step forward,
we must step down to some lower level machine code.
The binary numbering system is similar to the decimal numbering system you're
already use to in many ways.
The principles behind the systems are similar, but
obviously there's some differences as well.
Let's start with some names you may already be familiar with.
A bit is the smallest unit in binary, and it can either be a zero or a one.
If you put eight bits together it's a byte.
Both the decimal and binary numbering system, are positional numbering systems
meaning, the position of the numbers indicate the relative value.
Let's look at an example.
In the number 1,234, the 1 is worth 1000,
the 2 is worth 200, the 3 is worth 30 and the 4 is worth 4.
If you switch these numbers around, their relative values will also switch around.
The decimal system accomplishes this place value by using 10 as the base, and
increasing the power each time you step to the left, or 10 the 0, 10 to the 1,
10 to the 2, are the ones, tens, and hundreds place.
This same process happens in binary.
Only it uses two as the base instead of ten so the first position is two to zero
the second position is two the first, the third position is two to the second and
the fourth position is two to the third, representing the ones,
twos, fours and eights place.
Now, let's use our knowledge of place value to find out
what this bite represents.
Don't be shy, take a guess.
[SOUND] That's right, it's 1.
Here we've turned on the first bit which represents a 1 or
a 0 meaning this equals 1.
Let's try another, what about this bite?
Here we've turned on the second bit which represents two, so this bit equals two.
And, what about this one?
Here we've turned on the first two bits, the two and
the one, because two and one equals three.
This represents three.
Let's skip ahead a little bit.
What do you think this byte will represent?
Here we have the 8 and
the 2 bits turned on, so this represent 10, because 8 plus 2 is 10.
Now, let me assure you none of the languages we teach here at
Treehouse use the binary numbering system.
But, it's important to know where your data is going, and
what it looks like to a computer.
In the next video,
we'll look at a laptop tear down to see what data storage hardware looks like.
You need to sign up for Treehouse in order to download course files.Sign up