Prelude to Computer Science - 5: Binary Numbers
Loading...
19,629
Loading...
Uploader Comments (TheFallibleFiend)
see all
All Comments (25)
-
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...
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.
planetlover316 2 years ago
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.
TheFallibleFiend 2 years ago
great video - thanks for your educational videos.
BOGZASV8MA 2 years ago
thanks for watching. good luck in your educational pursuits.
TheFallibleFiend 2 years ago
how do we represent negative numbers in binary digits???
kikanqa 3 years ago
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.
TheFallibleFiend 3 years ago