Return to Video

https:/.../emt021080p.mp4

  • 0:20 - 0:25
    Welcome to the second video. In
    the binary series. Today, we're
  • 0:25 - 0:30
    going to talk about how to
    convert binary numbers to
  • 0:30 - 0:35
    decimal so when we see a binary
    number, something like.
  • 0:36 - 0:42
    10110 then we know that this
    place value is 2 to the power of
  • 0:42 - 0:47
    0. This place values to the
    power of 1 to do a power of
  • 0:47 - 0:53
    three to two power of four and
    two to power of five. So how can
  • 0:53 - 0:58
    we use this information to find
    out what this binary number is
  • 0:58 - 1:02
    in decimal? What we can do
    right? Every place value under
  • 1:02 - 1:05
    each digits? So two to zero do
  • 1:05 - 1:08
    today 1232. 223
  • 1:10 - 1:11
    224
  • 1:12 - 1:20
    and these numbers
    mean this is
  • 1:20 - 1:21
    1248.
  • 1:22 - 1:23
    16
  • 1:26 - 1:31
    now that means we've got 1 * 2
    to the power of 4.
  • 1:34 - 1:38
    Plus 0 * 2 to the power of 3.
  • 1:39 - 1:46
    Plus 1 * 2 to the power of 2 +
    1 * 2 to the power of 1.
  • 1:47 - 1:54
    Plus 0 * 2 to power
    of 0. This also means that
  • 1:54 - 2:01
    we've got 16 * 1 +
    8 * 0 + 4 *
  • 2:01 - 2:04
    1. Plus 2 * 1.
  • 2:05 - 2:10
    Plus 1 * 0 Now zero times any
    number always gives you 0, so
  • 2:10 - 2:15
    these numbers are equal to zero
    that we don't really need to
  • 2:15 - 2:19
    take them into account when we
    adding up, so the numbers that I
  • 2:19 - 2:26
    need to just add up 16 + 4 + 2
    and that is 22. Now if we wanted
  • 2:26 - 2:31
    to be really precise what I
    should be doing, I should write
  • 2:31 - 2:35
    a letter to in here to
    indicating that this is a binary
  • 2:35 - 2:40
    number. And the letter 10 in
    here indicating that this is a
  • 2:40 - 2:41
    decimal number, so.
  • 2:41 - 2:48
    10110 in binary
    is 22 in
  • 2:48 - 2:53
    decimal. Let's have a look
    at another example so you
  • 2:53 - 2:56
    can see clearly hard binary
    numbers work.
  • 2:59 - 3:03
    Let's start with a slightly
    smaller number 1101. This is our
  • 3:03 - 3:09
    binary number and we want to
    find out what it is equivalent
  • 3:09 - 3:10
    to in decimal.
  • 3:11 - 3:15
    Now we can again start talking
    about the place values and then
  • 3:15 - 3:19
    find out each at each place
    value what is equvalent to.
  • 3:19 - 3:22
    However, there is a slightly
    faster way. You might have
  • 3:22 - 3:26
    noticed that when we were
    looking at the binary playplace
  • 3:26 - 3:30
    values, what happened to the
    place values they all doubled as
  • 3:30 - 3:34
    we went from right to left, so
    we can use that information
  • 3:34 - 3:38
    instead of remembering always to
    the powers so I can start with
  • 3:38 - 3:40
    just writing one on top of the
  • 3:40 - 3:45
    first. Place value then double
    of that two to the next place
  • 3:45 - 3:50
    value up, then double of 2 four
    to the next place value up and
  • 3:50 - 3:55
    then AA 48 to the next place.
    Value up again. Every time I see
  • 3:55 - 4:00
    a zero. I know that zero will be
    multiplied by that place value
  • 4:00 - 4:04
    which also tells me that I don't
    necessarily have to take that
  • 4:04 - 4:08
    place value into account so
    another quicker way of doing the
  • 4:08 - 4:13
    conversion. Is I'm only taking
    into account the place values
  • 4:13 - 4:20
    which has got ones under them,
    so this number will be 8 + 4
  • 4:20 - 4:28
    + 1. Now 8 + 4 makes 12
    + 1. This is 13 in decimal.
  • 4:29 - 4:31
    You would say that it's a rather
    faster way of doing it.
  • 4:33 - 4:34
    So another example.
  • 4:35 - 4:42
    11010
    to make sure that everybody
  • 4:42 - 4:46
    knows is a binary number, I'm
    just going to put down the
  • 4:46 - 4:50
    letter to that and again look at
    the place values. So the
  • 4:50 - 4:55
    smallest place value here is 1.
    Then I'm just doubling up all
  • 4:55 - 4:59
    the different digits to get to
    all the place values. And again,
  • 4:59 - 5:04
    I'm only picking out the place
    values which have got ones under
  • 5:04 - 5:09
    them. So 16 + 8 four has zero
    100, so that's not going to be
  • 5:09 - 5:14
    used. And to use that has got
    one under it. The last place
  • 5:14 - 5:17
    value the one place where you
    again is not used.
  • 5:18 - 5:22
    So adding these together
    again, I can pick and choose
  • 5:22 - 5:25
    which numbers are merging
    together and I can notice
  • 5:25 - 5:30
    that 8 + 2 adds up to 10
    quite nicely, and 10 + 16 is
  • 5:30 - 5:35
    easier to add together that
    16 + 8 + 2. So whenever you
  • 5:35 - 5:39
    have numbers here you can
    pick and choose which one to
  • 5:39 - 5:42
    add together, especially if
    you're not allowed to use a
  • 5:42 - 5:47
    Calculator. So 8 + 2 makes
    1010 + 16 makes 26, so this
  • 5:47 - 5:49
    number is 26 in decimal.
  • 5:52 - 6:00
    Next example 11101. Again,
    this is a binary
  • 6:00 - 6:02
    number. Place values.
  • 6:04 - 6:09
    124 eight 16. So which are the
    ones I'm adding together
  • 6:09 - 6:16
    everything except the two. So
    this is 16 + 8 + 4 +
  • 6:16 - 6:22
    1. Again I can pick and choose
    which numbers to add together.
  • 6:22 - 6:28
    16 and four nicely adds up
    together to 20 and I've got 8 +
  • 6:28 - 6:34
    1 which gives me 9. So
    altogether this number is 29.
  • 6:34 - 6:35
    In decimal.
  • 6:37 - 6:41
    OK, now you can see three
    different examples here in front
  • 6:41 - 6:45
    of you. And when you look at the
    three different numbers, the
  • 6:45 - 6:48
    decimal equivalents that you
    see, we can spot that two of
  • 6:48 - 6:53
    them are odd and one of them is
    Even so how can I quickly and
  • 6:53 - 6:58
    easily just see if a number is
    odd or even in binary? Now look
  • 6:58 - 7:02
    at all the place values, every
    single place value is an even
  • 7:02 - 7:06
    number except for the very last
    one. OK, so the smallest place
  • 7:06 - 7:08
    value is the one.
  • 7:08 - 7:12
    Everything else is even now we
    know in mathematics that if I'm
  • 7:12 - 7:16
    adding even numbers together,
    the answer always going to be
  • 7:16 - 7:20
    even. We also know if I'm adding
    an even an odd number together.
  • 7:20 - 7:25
    The answer will be odd, so this
    is a quick way to check if
  • 7:25 - 7:29
    you've made any calculation
    mistakes or not. If the last
  • 7:29 - 7:34
    digit in the binary number is 1,
    then you know that you used one,
  • 7:34 - 7:39
    so your answer has to be an odd
    number, but if your last digit.
  • 7:39 - 7:43
    O, you know that you haven't
    used any odd numbers in your
  • 7:43 - 7:46
    sum, so everything added
    together there is even there
  • 7:46 - 7:50
    for your final number has to
    be even. This is just
  • 7:50 - 7:54
    curiosity to help you if
    you're not very familiar with
  • 7:54 - 7:58
    the binary numbers to see if
    your answer is right or not.
  • 8:00 - 8:06
    I'm hoping that you started to
    get an understanding of the
  • 8:06 - 8:10
    binary numbers, but let's look
    at some slightly longer and
  • 8:10 - 8:15
    therefore a little bit complete.
    More complicated examples. So if
  • 8:15 - 8:21
    I have got a slightly longer
    number, such as 10101010 Now as
  • 8:21 - 8:25
    I mentioned before, I'm
    expecting to have an even
  • 8:25 - 8:30
    answer. But what exact number
    lies behind this binary number?
  • 8:31 - 8:37
    So again, start putting the
    place values on top of the
  • 8:37 - 8:42
    digits 124, eight, 1630, two
    64128. Now you don't need to be
  • 8:42 - 8:46
    quite good at doubling, but
    doubling isn't overly
  • 8:46 - 8:51
    complicated, so you should be
    able to carry out these
  • 8:51 - 8:55
    calculations relatively simply
    even without a Calculator. So
  • 8:55 - 8:59
    what are the digits I'm using
    here? Remember, anything
  • 8:59 - 9:04
    multiplied by zero always gives
    you 0, so these digits.
  • 9:04 - 9:10
    Here we are not add any extra to
    the number value that I have
  • 9:10 - 9:18
    here, so I only have to pick out
    128 + 32 + 8 + 2. So again
  • 9:18 - 9:23
    I can pick and choose which
    numbers to add together and by
  • 9:23 - 9:28
    looking at it I would say the
    adding together 128 and two
  • 9:28 - 9:34
    gives me nice an easy number
    which is 130 and adding together
  • 9:34 - 9:35
    32 + 8.
  • 9:35 - 9:43
    Gives me 40, so this
    number is 170 in decimal.
  • 9:43 - 9:46
    I could have chosen a different
    combination of adding the
  • 9:46 - 9:48
    numbers together. I could have
  • 9:48 - 9:52
    added 32. And 128 and 8 +
  • 9:52 - 9:58
    2. Ending up with 170 again, but
    I think he would agree with me
  • 9:58 - 10:00
    that adding 128 + 2 together.
  • 10:00 - 10:07
    Slightly simpler than adding 128
    and 32, although it's not
  • 10:07 - 10:14
    that much more complicated and
    the last example for today's
  • 10:14 - 10:20
    video is 11001101 in binary.
    Again, a nice and quick
  • 10:20 - 10:27
    way of putting the exact
    place values on top of
  • 10:27 - 10:30
    the numbers one 248-1632.
  • 10:30 - 10:34
    64128 and again, remember
    anything which has got zero
  • 10:34 - 10:37
    under 8 will just get
    multiplied by zero.
  • 10:37 - 10:40
    Therefore that number
    doesn't add to the value,
  • 10:40 - 10:45
    so I'm just picking out the
    place values which has got
  • 10:45 - 10:46
    the digit 1.
  • 10:48 - 10:54
    So 128 + 64 + 8 + 4
    + 1. Now unfortunately, when I'm
  • 10:54 - 11:00
    looking at this some there isn't
    anything that is nice and easy
  • 11:00 - 11:06
    to add together, so I will have
    to think about this addition and
  • 11:06 - 11:11
    slightly different way. So what
    I'm gonna do I'm going to add
  • 11:11 - 11:16
    together these smaller digits.
    So 8 + 4 makes 12 + 1
  • 11:16 - 11:19
    makes 13, so these three.
  • 11:19 - 11:24
    Makes the team and I've got
    64128 left. I'm going to leave
  • 11:24 - 11:31
    128 for now because I can see
    that 64 an hunnan 13 can add
  • 11:31 - 11:36
    together quite simply so that
    together makes 77. And now I'm
  • 11:36 - 11:42
    just going to copy 128
    underneath and 7 + 8 makes 5
  • 11:42 - 11:49
    carried A one. 1 + 7 makes 8
    + 2, makes 10 carry the 122.
  • 11:49 - 11:53
    So this number is 205 in
    decimal, and again I'm expecting
  • 11:53 - 11:58
    to have an odd number because I
    have got a digit one in here.
  • 11:59 - 12:02
    And at this video was about how
    to convert binary numbers into
  • 12:02 - 12:06
    decimal numbers. I hope you have
    got a better understanding of
  • 12:06 - 12:10
    the process now and in the next
    minute you will see some
  • 12:10 - 12:13
    practice questions that you can
    try yourself and I will supply
  • 12:13 - 12:14
    the answers as well.
  • 12:15 - 12:19
    I suggest that you post the
    video while you are carrying out
  • 12:19 - 12:23
    the calculations and then you
    move on to the answers. So these
  • 12:23 - 12:24
    are the practice questions.
  • 12:30 - 12:31
    And here are the answers.
Title:
https:/.../emt021080p.mp4
Video Language:
English
Duration:
13:02

English subtitles

Revisions