Prelude to Computer Science - 5: Binary Numbers

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
19,629
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 16, 2007

Computers use binary numbers internally, because components that use binary are easier and cheaper to build. Whenever you type a number into the computer, it gets converted to binary internally, and then back to decimal for output. (Actually, it's converted to ASCII for output, but that's for a later discussion.)

http://www.geocities.com/elbillaf/Prelude_to_CS.html

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (TheFallibleFiend)

  • If I use hexadecimal to represent my 8 digit binary number, can I store that into a cell. Is it 8 bits or just 2 stored in the cell,like "FF"

    Also if I move a value to 01 cell from 00 cell. is cell 00 empty. and 01 is overwritten right. Or can it be placed behind another hexadecimal if they can be stored.

  • I assume a "cell" is a "memory location." An eight 'digit' binary number is 8 bits long and so it requires 8 bits to represent internally. It gets "turned into" the characters "FF" when you attempt to output. In assembler language, you might have to write this conversion yourself. In higher level languages, the formatted print statements do it for you.

    The original cell in your example is not "emptied" or zeroed in a copy operation.

  • great video - thanks for your educational videos.

  • thanks for watching. good luck in your educational pursuits.

  • how do we represent negative numbers in binary digits???

  • Example:

    say we use3-bit two's complement.

    dec binary

    0 000

    1 001

    2 010

    -1  111

    -2 110

    Generally, you can get the negative of a num by reversing bits and adding one. With 3 bits we can represent integers from -4 to positive 3.

see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • Thanks, This really helps me a lot!

  • Your videos are quite helpful and straightforward. Tx man!

  • excellent thanks a million

  • Awesome vid thanks

  • I'm not sure if you said this, but you did not add what hex is, how binary is easily translated into hex, or what the 0x or 0b prefixes mean if you see them.

    Basically if you mentioned binary, hex and dec people would know about every number system the computer uses.

    Short of octal, but I've never really seen that used anywhere.

    Good video other wise.

  • Thank you!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more