Nearly 9 years after the original upload date, and this still helped me a bunch. Thank you
@utopianice4574
5 жыл бұрын
"So I want to explore this a 'bit' more" hehehe
@drbudman8768
3 жыл бұрын
Get out...👉🤣
@jiji5493
2 жыл бұрын
it’s so crazy seeing these comments thanking him not knowing what he did
@patduenas2179
2 жыл бұрын
I went down the rabbit hole… 😧😧😱
@amrfarag8308
9 жыл бұрын
The positive values are easy: 0 = 0000 1 = 0001 2 = 0010 3 = 0011 4 = 0100 5 = 0101 6 = 0110 7 = 0111 For the negative values, you need the 2's complement (invert all the bits, then add "1") -1 = 1110 + 1 = 1111 -2 = 1101 + 1 = 1110 -3 = 1100 + 1 = 1101 -4 = 1011 + 1 = 1100 -5 = 1010 + 1 = 1011 -6 = 1001 + 1 = 1010 -7 = 1000 + 1 = 1001 The only combination not yet used in either positive or negative values is "1000" This could equal either 8 or -8, so in keeping with the sign bit convention, -8 is used. So, signed 4-bit binary gives you the values -8 to 7. Similarly, signed 8-bit binary give you -128 to 127 and signed 16-bit binary give -32768 to 32767.
@AdamDavis444
9 жыл бұрын
+Amr Farag Excellent clarification, also on the non-duplication of zero. Thanks!
@ah.maaher
6 жыл бұрын
+Amr Farag اشرح الكلام ده تانى كدا For the negative values, you need the 2's complement (invert all the bits, then add "1") -1 = 1110 + 1 = 1111 -2 = 1101 + 1 = 1110 -3 = 1100 + 1 = 1101 -4 = 1011 + 1 = 1100 -5 = 1010 + 1 = 1011 -6 = 1001 + 1 = 1010 -7 = 1000 + 1 = 1001
@sang180
11 жыл бұрын
Awesome teaching style. Super clear, super concise. Thanks!!!
@sang180
11 жыл бұрын
I like my computer science teacher but gotta admit he is not the clearest lecturer. Your videos are clear, concise, to the point. Thanks SO much.
@agiliteaV
Жыл бұрын
My classes just skimmed over this real quickly, I thank this video for being avalible for me to better understand this concept. Thank you.
@notsocooljoe
2 жыл бұрын
This is amazing. You just taught me something I couldn't grasp by other teachers.
@CliffordFajardo
5 жыл бұрын
I liked the small examples & summary slides. Also liked how you threw in other information like: - "keep in mind it is up to you the programmer to specify how any given binary sequence is going-to be interpreted" ... In the comments below someone mentioned 2's compliment, which is something I'd heard mentioned in the past, but never really looked into. Essentially there are several ways to represent signed numbers (positive or negative numbers). One method is by using the signed magnitude method ( using a sign bit ..shown in this video) and complement form (1 & 2s complement)
@darraghrabbitte1772
Жыл бұрын
Thanks for this , a video made 10 years ago taught me in 10 mins what a college lecturer failed to do in 4 weeks!
@WVJimbo
9 жыл бұрын
So why would KZitem use a signed 32-bit integer to represent the total number of views for a video instead of an unsigned integer? When would they ever need to record a negative number of views? There must have been some benefit of using a signed integer but I can't imagine what that would be.
@fyrstikken
9 жыл бұрын
hmm, well, unsigned integer would only delay the problem of the max view limit. Upgrading to 64 bit is just the logical next step to do, but ofc - yes, they could use unsigned integer, and have the view-counts run for many more years with only positive numbers to display.
@eggplantunleashed4740
4 жыл бұрын
Why do most Computer Tutorials sound like there's some Huge Ass Server running in the background? Lol. Thank you so much for this video! This is so easy to understand with your instructions. Subbed!
What happens is that rather than counting a positive zero and a negative zero, you get one extra negative number. For example, a 16 bit signed integer would hold values from -32,768 to positive 32,767.
@fakhraaslam296
6 жыл бұрын
i still confuse.............. how i know about number is signed or not
@Josama0214
3 жыл бұрын
M8 he’s in jail
@GroudFrank
10 жыл бұрын
*Excellent!* I was having problems understanding this but I practiced binary exorcises converting binary to decimal and hexadecimal, or converting hexadecimal to decimal and binary etc. Now I completely understand all that was said in the video.
@jonsanmigel4226
3 жыл бұрын
Brooooooooo, This is soooo much more clear than my current professor thank you!!!
@djlord77
11 жыл бұрын
Why do you get an extra negative and not extra positive number instead? Just a conventional way or does it hold a special purpose?
@tuxsax
12 жыл бұрын
Hi Carl, A little question about the signed numbers, what happens to zero? There's no positive nor negative zero, so it means we're wasting four bits for nothing, right? as we're counting twice zero as it can be only one value for zero.
@charliea2096
2 жыл бұрын
I don’t think he’s going to respond any time soon
@stevenrogersfineart4224
2 жыл бұрын
This is an excellent video. You might want to look into Nvidia broadcast or something like that for background noise canceling. If it didn't have that background noise this video would be A+
@alexg.1465
4 жыл бұрын
3:12 i want to explore this a "bit" more
@blaincaptures3541
4 жыл бұрын
My professor is an Asian man who speaks terrible english, I can't understand a word he says. This video is very helpful
@WaldoTheWombat
2 жыл бұрын
what is the alternative for representing negative values? and what is compliment?
@therealpepeu
5 жыл бұрын
Thank you! I finally got this bit into my brain.
@VISHESHKUSHWAH
10 жыл бұрын
I have a doubt,just have u said that if int x=1010,then signed x is -2,it could be +10 also ,as the result should depend on the no. of bits of x.
@sharpEAGLES
9 жыл бұрын
Consider a number line for this concept it will get clear.
@evagorasioannou7505
10 жыл бұрын
thank goodness for your video. Couldn't have been explained more clearly. Thanks very much.
@orangeflip
7 жыл бұрын
some of the people in the comments are getting mixed up between sign and magnitude, using leftmost bit as a sign, and 2's compliment.
@OriginalLany
7 жыл бұрын
Well, thanks for the video, but.. 5:45 binary 0011 is 3, that's okay But 1011 is actually not negative 3, that's negative 5..
@hirakmondal6174
7 жыл бұрын
1011 is also negative three and eleven??? how is this possible? i am totally confused..pls help
@matocarina
6 жыл бұрын
yes,that's way you can't know data type just by looking at it 0:35
@oussamaboukoutaya8702
Жыл бұрын
You are great, i hope you are doing good ❤❤
@AsianDoraOfficial
3 ай бұрын
he dead.
@MM-by6qq
3 жыл бұрын
OMG thanks alot sir!!! that was perfect explanation
@hasnatkabir8903
6 жыл бұрын
all confusion gone away.
@altafsheikh3485
9 жыл бұрын
very nicely explained thank you
@d3magol9
3 жыл бұрын
Explained fantastically. Keep it up.
@luzherrera4463
2 жыл бұрын
He killed himself
@d3magol9
2 жыл бұрын
@@luzherrera4463 ?
@JLee14
5 жыл бұрын
Thank you for explaining so well!
@kqvanity
3 жыл бұрын
8:20 not respectively in this case , inversely as far as i understand
@eandyil8168
8 жыл бұрын
For those of you confused as I was, the reddit thread has explained it in comments. For those of you starting this after me, you'll have figured out I'm following reddit and youtube as I go. www.reddit.com/r/carlhprogramming/comments/9os31/lesson_18_the_basics_of_signed_and_unsigned/
@user-lb1fl7sh8m
7 жыл бұрын
i see your material ,really helpful where can i find all lessons??
@apexant8957
9 жыл бұрын
explained well.
@feitoza.system
2 жыл бұрын
thank you very much, man.
@ps4bros934
2 жыл бұрын
really clear
@oddball0045
11 жыл бұрын
Yes, known as 2's complement
@razbenhaim6651
4 жыл бұрын
summary: 7:50
@tuxsax
12 жыл бұрын
I see, so you basically skip the negative zero and start counting right away from -1 to -32768? Cool, no bits waste...
@adgritty5222
7 жыл бұрын
is there any android code pads available ...!? plz someone answer's me
@adrianasilveira4561
2 жыл бұрын
Great video. Thank you
@nicklasnilsson8217
10 жыл бұрын
Awesome explanation!
@himbary
5 жыл бұрын
This helped me a lot thanks!
@WhatupPlayboy
2 жыл бұрын
Awesome man I get it the idea 💡
@subashacharya2682
10 жыл бұрын
best best thanks i was trying to understand it
@coreprogramming
11 жыл бұрын
and for 32 bit complir it is ??????
@AgentGWG
5 жыл бұрын
Literally no one is talking about how terrible of a person this guy was! Like yeah, this video might have helped you learn something, but he was a maniac, so keep your praise to yourself.
@brianzhamilton
5 жыл бұрын
Grant Gammon Wow.... if not for your comment here, I never would have known.
@Rakesh-yu1pb
4 жыл бұрын
holy shit i just googled his name wtf
@radiagulzan
4 жыл бұрын
omg is this the same person? www.inquisitr.com/1069377/carl-herold-popular-reddit-user-carlh-accused-of-raping-torturing-9-year-old-son/
@pjk7685
4 жыл бұрын
@@radiagulzan omg this is crazy. But it reminds me of something my philosophy teacher said. A evil person can state facts. Doesn't mean you automatically have to discredit every word from his mouth/ such as facts of whatever he's teaching. You can discredit his character and even be repulsed by it. It's important to separate the two. Although I do hope he gets the punishment he deserves and is put in jail for life and suffers for such horrendous repulsive crimes. However his video is not a crime so I will try to understand this video topic at hand even though I am really disturbed about this person's mental well being now.
@yuesesdiapp9804
4 жыл бұрын
@@pjk7685 Thank you for bringing that up. This is insane!! I am only here to learn about this certain topic but it gave me the chills.
@oddball0045
11 жыл бұрын
Actually my bad, this is sign magnitude. But i generally like 2's complement better.
@hastar4329
3 жыл бұрын
great video
@kshitijvengurlekar1192
7 жыл бұрын
Thanks a lot
@shuyanchi5224
6 жыл бұрын
it's great.
@UKImperium
3 жыл бұрын
Thank you. Even though this is still a little confusing it helped.
@theanimationlads7598
3 жыл бұрын
He’s literally been dead for like 6 years
@UKImperium
3 жыл бұрын
@@theanimationlads7598 . I didn't know. After you said that I decided to Google his name. I can't believe what I read.
@420nyk
4 жыл бұрын
Great Video. Thanks a ton!
@TheBatmanvs1
4 жыл бұрын
Did you hear what he did?
@420nyk
4 жыл бұрын
@@TheBatmanvs1 Yes
@youngchrisymcmb
7 жыл бұрын
Very awesome!
@nawal7254
4 жыл бұрын
how do you know what number it is?
@RayGBullet
4 жыл бұрын
He ain't gonna reply chief. My nigga is burning in hell.
@nawal7254
4 жыл бұрын
@@RayGBullet yo it's been 6months lmao dont even remember this video just glad I passed the semester 😩
@aishamohammed5628
3 жыл бұрын
@@nawal7254 Hey are u somali?
@nawal7254
3 жыл бұрын
@@aishamohammed5628 Sudanese
@nawal7254
3 жыл бұрын
Lmao a year now 😂
@cristiangarcia22barc
4 жыл бұрын
perfect thank you
@mryup6100
5 жыл бұрын
3:10 Nice pun sir...
@markolovric8237
10 жыл бұрын
isn't 1111 negativ 0?
@NoumaanNaseer
9 жыл бұрын
no.. itz a negative 7
@CrashRebootL3
10 жыл бұрын
thanks, good to know
@arunbm123
6 жыл бұрын
well explained
@GurnBograt1986
10 жыл бұрын
Awesome!
@VkXGames
5 жыл бұрын
¡EXCELENT! ¡Thanks!
@itaco8066
4 жыл бұрын
Awesome
@6183134
4 жыл бұрын
Excelent!!!!!!
@coleblezzy9755
10 жыл бұрын
good vid but get rid of all the background noise
@TheBatmanvs1
4 жыл бұрын
Lol really?
@mallemang
9 жыл бұрын
also 1010 is NOT negative two! it looks more like negative six to me.
@brown6532
8 жыл бұрын
It's negative 2 in signed number.. The first bit is reserved for the sign
@animania6947
5 жыл бұрын
Playback speed 2x
@passingby1350
3 жыл бұрын
"this number is obviously 7" :"0
@uraniumcivics7144
6 жыл бұрын
#dickgamestrong
@SalaciousBCrumb-te1jx
6 жыл бұрын
NNEERRRRRRDSS
@AmusingG69
2 жыл бұрын
@amps sup
@ps4bros934
2 жыл бұрын
Awesome teaching style. Super clear, super concise. Thanks!!!
Пікірлер: 114