Computer Basics 4: Decoding a Binary Number



http://FreeCodeCamp.com is a community of busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Follow us on twitter: https://twitter.com/intent/user?screen_name=freecodecamp

Follow us on Twitch: twitch.tv/freecodecamp

Like us on Facebook: https://www.facebook.com/freecodecamp

Follow Quincy on Quora: http://www.quora.com/Quincy-Larson

In this video, we decode a number written in binary notation.
Let’s talk about the binary numeral system, also known as a bunch of 1’s and 0’s over and over again.
We’re going to start by labeling, staring backwards, how many numbers there are.
(In this video there are 7, but we start at 0, so we only get up to 6.) Pretty straightforward.
The next step is to take 2 to the power of whatever place it is, a 2 to the 0, 2 to the 1, all the way up to the largest placeholder.
Then, all we have to do is fill in some mathamatical blanks by completing the exponential 2 problems.
If there is a 1, we keep that number (the two to the exponent solution) and add it to other 1 or on numbers.
If it’s a 0, we disregard it.
In this video, our number adds up to 75.

source

This Post Has 21 Comments

  1. Krrrimmi

    Computer Architecture 1.
    I miss my college life. 🤓

  2. B K

    So here two different binary codes can result in the same number?

  3. Sam

    LOL. MY TEACHER SUCKS.

  4. 0xRedPill

    binary is like the mother of all numbers ( 0 and 1 )

  5. Francisco Jurado

    Do you always use 2 as a base ? (in the third line) like 2^0…2^1.. and so on

  6. Ahmed Raza

    But i am getting different anwser with this method. Before i was using sum of weight meothod…What the hell….

  7. Noldy

    Wooowww!!! I understood the binary concept in less than 2 minutes.

  8. judah powers

    I am confused, shouldn't this be 105?My calculation is:1001011=1 + 0 + 0 + 8 + 0 + 32 + 64 =96
    I think you accidentally did the whole thing backwards because it is easier to count binary backwards because of moving from larger numbers to smaller numbers is simplest to think about, but then you accidentally did the whole calculation backwards.

Leave a Reply