How to: Twos Complement

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • A pen and paper demonstration of how to convert and perform binary addition using twos complement

КОМЕНТАРІ • 290

  • @Anujtr
    @Anujtr 5 місяців тому +70

    10 years later and still doing god works thank you

  • @MalditaAko24
    @MalditaAko24 9 років тому +200

    I was confused on how my professor explained this but thanks to you I understand it now clear as day!

  • @capitol7760
    @capitol7760 7 років тому +41

    Shutout from the UK! By far the best explanation of Two's Compliment I have ever come across, clear and concise.

  • @anthonysanchez2517
    @anthonysanchez2517 7 років тому +55

    I've been stuck trying to do this weird way outlined in my course and book that involves bin addition that always leads me back to 0000 .
    this is SO much easier.
    I can't thank you enough !

  • @ericvalero2
    @ericvalero2  8 років тому +155

    Holy crap this video has almost 20k views.
    Glad to be of help!
    I was just bored at work back when I started making these videos, never thought anyone would watch.

    • @TaMeApollo
      @TaMeApollo 7 років тому +5

      you're a great guy

    • @cd78
      @cd78 7 років тому +9

      Sir may I take a minute and commend you. I am a computer science undergraduate and by god has the teacher confused the whole class with trying to explain what you have made succinct in 5 minutes. Thats a gift you have. Lets see some more of your videos.

    • @madelaineraye
      @madelaineraye 7 років тому +2

      I'm glad it does, because it's the only video I've found that explains 2's C in layman's terms. THANK YOU.

    • @jeremy7168
      @jeremy7168 7 років тому +1

      Eric Valero not all heroes wear cape

    • @rufaromanjalanz8219
      @rufaromanjalanz8219 6 років тому

      90k with 131 comments. In 2018

  • @RubberPvPSG
    @RubberPvPSG 4 роки тому +11

    Dude its 2019 and u are still helping ppl u should be so proud
    :) *thumps up*

  • @omarthompson831
    @omarthompson831 Рік тому +6

    this may have been 8 years ago but this was helpful AF 8 years later

  • @KreezySways
    @KreezySways 5 років тому +6

    Genius. I have been struggling for almost 3 days searching all over the Internet on how to do this. You my friend have removed the veil

  • @olivermitchell4968
    @olivermitchell4968 7 років тому +4

    You are a life saver, my computing course gave me a load of overcomplicated garbage, this is so great!

  • @-b6h-586
    @-b6h-586 2 роки тому +1

    years and years later and this video still saves students lifes i love you Eric Valero !!

  • @blueninja42069
    @blueninja42069 5 років тому +2

    finally a person that shows us the easy way, not getting into too many confusing details about bit addition!

  • @louco2
    @louco2 3 місяці тому +2

    I have to say thank you for thanking the time to do this video! Very good teaching skills.

  • @appropinquo3236
    @appropinquo3236 2 роки тому +7

    This is such a great explanation; I've seen so many explanations online that just didn't help to convey what was actually going on with it. Can't wait to start using this in code!

  • @capitol7760
    @capitol7760 7 років тому +6

    I have been trying to learn and remember this for my course for ages, and you summed it all perfectly in 5 mins. Thank you so much!

  • @ShcwuanZagama
    @ShcwuanZagama 11 днів тому +1

    Amazing explanation!! You're great Eric

  • @mingfengwang1807
    @mingfengwang1807 Місяць тому

    just started learning this and this 5mins video just summarised my entire lecture. thank you so much bro you're a legend

  • @cbjueueiwyru7472
    @cbjueueiwyru7472 9 років тому +8

    THANKS! This was way easier than the way I was taught and more clear.

  • @dhananjay13192
    @dhananjay13192 6 років тому +4

    Thanks Eric, you made it look so simple. It was really frustrating when the whole class was answering and I didn't even knew what a 2's complement is. :)

  • @ItsM9_
    @ItsM9_ 6 років тому +8

    You are so awesome! You have just saved my GCSE in Computing tomorrow!

    • @ErensSmiledog
      @ErensSmiledog 4 роки тому

      If only I wasn't asked so much about theory...

  • @trashqueentasha
    @trashqueentasha 4 роки тому +1

    You saved me 3 marks on my exam. I would buy you food I am so happy! Thankyou for being a messiah!

  • @nviouzcs
    @nviouzcs 8 років тому +36

    fucking sick shortcut thanks man

  • @astranautic
    @astranautic 2 роки тому

    Thank you!! The prof did NOT explain this well, he basically breezed past it and used a different method. This is so much easier!

  • @gustafudd4508
    @gustafudd4508 6 років тому +4

    Great video. Professor seemed to make it seem more complicated than it actually was. Thank you :-)

  • @Alcoholic_Medic
    @Alcoholic_Medic 6 років тому +1

    That just made my computer science classes a whole lot easier, Thanks !

  • @hellrock
    @hellrock 5 років тому

    Thanks man. Probably the best and easiest explanation I've ever seen.

  • @PHTM04
    @PHTM04 2 роки тому

    dude thanks so much i forgot this technique and you just made me remember it for my exams. appreicate it man

  • @coldsummersky69
    @coldsummersky69 8 років тому

    obviously not in depth but serves the purpose of this video very well. which is the simplest way to solve the problem thank you!

  • @jacktar9786
    @jacktar9786 8 років тому

    Dude!!!!!!!! thanks so much for this video. this is the simplest way i have ever seen this explained. thank you

  • @mertozkan2692
    @mertozkan2692 Рік тому

    Nice way to show how to use 2's compliment. Thanks for a great video

  • @dhlomolephoma4461
    @dhlomolephoma4461 4 роки тому

    I appreciate your help with this 2's complement and your honesty with that low tech video.

  • @waldke6000
    @waldke6000 6 років тому

    You're a kind angel and a beautiful unicorn, may you be blessed with many warm showers this mushroom picking season

  • @Daimak
    @Daimak 6 років тому +3

    eric you saved my fucking life thanks to you now i feel like a genius i love you eric keep going man

  • @DyslexicAnaboko
    @DyslexicAnaboko 2 роки тому

    It's been years since I have had to do this, this totally helped me remember thank you.

  • @AlexRichter
    @AlexRichter 3 роки тому

    Appreciate you making this video way back when!

  • @drew22
    @drew22 7 років тому

    Dude this helped me sooooo much. My teacher is total crap at explaining all this so you really saved my butt for the test

  • @user-ld3ny2yp2y
    @user-ld3ny2yp2y 3 роки тому

    9 minutes before my exam, and I finally found this video... LIFE SAFER!

  • @amorfati4559
    @amorfati4559 4 роки тому

    Thanks dude. Straight to the point and easy to follow.

  • @ravishanpathmakumar7927
    @ravishanpathmakumar7927 5 років тому

    Your video helped me understand this concept better than my prof did in 3 lectures!!! Thanks a bunch 😊

  • @nithindreemendis875
    @nithindreemendis875 4 роки тому +1

    Oh my gosh this is so helpful! Thanks so much! Wish you all the best my dude!

  • @65MaX73
    @65MaX73 7 років тому +5

    Fuck my professors! You explained it in 5 minutes better than them in 90 lol

  • @hoofbags
    @hoofbags 5 місяців тому

    How do you do this Eric? You're a 'kin genius! Thank you so, so, so much for this easy to understand upload. I'm so genuinely grateful!
    🙏 🤓

  • @chigoziea.991
    @chigoziea.991 5 років тому

    This is the best method hands down.

  • @ImpendingApotheosis
    @ImpendingApotheosis 8 місяців тому

    Holy Jesus this was so much simpler than whatever my professor was on!

  • @monikaasudani583
    @monikaasudani583 Рік тому

    Thank you so so much. I have a comp sci exam in 2 day and this really saved me😭😭❤

  • @mrnumbskull2048
    @mrnumbskull2048 5 років тому

    I don't necessarily understand why this works, but it's a very quick way of doing it. Previously I was inverting all of the bits and adding one, which leads to a lot of cumbersome 'carrying' of bits. Thanks!

  • @MariusUrbelis
    @MariusUrbelis 6 років тому

    Great video! Appreciate the tip about converting numbers to two's complement.

  • @joshfoy7097
    @joshfoy7097 8 років тому

    Thank you! Way easier than the way I was taught! Using the 1st bit trick is a lot quicker!

  • @architkumar-vx8wt
    @architkumar-vx8wt 2 роки тому

    most convinient way. Thanks for making this.

  • @michelledean5225
    @michelledean5225 3 роки тому

    jesus the add 1 method confused the hell out of me this works great thank u!

  • @harisarshad7194
    @harisarshad7194 8 років тому +1

    Thanks man. Before watching this video i was really stuck in it. Good Job!

  • @sweetcadbury
    @sweetcadbury 3 роки тому

    Thank you Eric. Very nicely and simply explained.

  • @pororou
    @pororou 6 років тому

    eventually I managed to understand the Sign-Magnitude Representation through Twos Complement! (which is weird bc usually you have to figure out sign-magnitude first but oh well)
    I'm so grateful for this, thank you very much!! this is way easier than the method in my lecture note!!

  • @tylermatthews1103
    @tylermatthews1103 Рік тому

    Great explanation, a lot more simplified finally.

  • @blueturtle8
    @blueturtle8 Рік тому +1

    extremely helpful i thought it was complex all you do is just flip the digits after the LSB

  • @MWIJUSYAOliseh
    @MWIJUSYAOliseh Рік тому

    Thanks really alot, my lecturer first wanted me to get ones complement and add one to the least significant bit

  • @SpaghettiWithMeatSauce
    @SpaghettiWithMeatSauce 3 роки тому

    You are godsend my friend. So many resources overcomplicate the shit out of this stuff

    • @ericvalero2
      @ericvalero2  3 роки тому

      So glad this is still helping people all these years later!

  • @H4ZZ4
    @H4ZZ4 6 років тому

    Oh My God! You my friend are an absolute LEGEND!

  • @BobBob-uf2wi
    @BobBob-uf2wi 5 років тому

    Hey man you really helped me out, thanks to you I can sleep in class! :) thanks a lot

  • @shadowfire04
    @shadowfire04 5 років тому

    while this is not the way i learned it, this is much faster and easier to understand. thank yoU!!!!!!!!!!!

  • @marcushines4172
    @marcushines4172 8 років тому

    Wow bro. Thanks for the video. Obviously you get the "in-depth" theoretical aspect in class. But after you have that, it's nice to have a concise shortcut.

  • @monjasonsteng7861
    @monjasonsteng7861 11 місяців тому

    Thank you for the amazing explanation. This was fantastic!

  • @domenic_f
    @domenic_f 3 роки тому

    This video is insane, amazing job explaining this!

  • @yeniaraserol
    @yeniaraserol 7 років тому

    Keep up good work Eric! Very simple and effective video.

  • @alexEMP1
    @alexEMP1 8 місяців тому

    awesome video. very clear and concise.

  • @sanushcj
    @sanushcj Місяць тому

    thanks man, Crisp and clear🔥🔥

  • @AyahuascaRodgers
    @AyahuascaRodgers 17 днів тому

    midterm in 30 minutes my guy a goat

    • @alicalmandcool
      @alicalmandcool 10 днів тому

      huh man my college just started how tf ur midterm started 6days ago

  • @ProfessorJDawg
    @ProfessorJDawg Рік тому

    This summed it up for me thank you so much!!

  • @amoxintubeu
    @amoxintubeu 3 роки тому

    Hahaha, this clip is amazing, simple, and concise.

  • @ashimishra215
    @ashimishra215 Рік тому

    thank you so much, this is praise-worthy :)

  • @Confundrum
    @Confundrum Рік тому

    I finally understand it. Thank you!

  • @bballdaniel3
    @bballdaniel3 6 років тому +1

    This was really clear and concise, thanks!

  • @jerrygord3131
    @jerrygord3131 2 роки тому

    Thank you so much for clearing this up!

  • @agstechnicalsupport
    @agstechnicalsupport Рік тому

    Very nice video, instructional. Thank you ❤

  • @Rick_Cavallaro
    @Rick_Cavallaro Рік тому

    Very nice! The only thing I might add (for dummies like me) is why we leave positive numbers as normal binary, but put negative numbers into twos-complement format. I would naively think that you operate in one or the other. But it seems the magic is that by expressing negative numbers as twos-complement, things just work.
    I *think* the other question is to know how you decide if your result is straight binary or twos-complement. I assume it's twos-complement if the msb is a 1 and straight binary if it's a 0. Yes?

  • @globalxoxo
    @globalxoxo 2 роки тому

    amazing video thank you so much sir hope you are well
    dope profile picture too btw

  • @entarotassadar5520
    @entarotassadar5520 6 років тому +3

    Thanks for the vidoe! Still have one question tho, how do you know a two's complement number is represantion a positive number or a negative number?

    • @shadowfire04
      @shadowfire04 5 років тому +3

      if the first bit from the left is a 1. ex: 1000 0001 is equal to -127, while 0000 0001 is 2.

  • @NguyenTran-sn8vt
    @NguyenTran-sn8vt 6 місяців тому

    Awesome! Can't believe colleges don't manage to teach this.

  • @ahmedndiaye3861
    @ahmedndiaye3861 5 років тому

    Thanks!!!
    So easy to understand with your explanation.

  • @troyhamilton1889
    @troyhamilton1889 Місяць тому

    this is by far the best way to do this. the other way where you negate ALL the bits then do binary addition and add 1 is a nightmare.

  • @xin0346
    @xin0346 2 роки тому

    This was so helpful thank you so much!

  • @calvinbarajas5144
    @calvinbarajas5144 5 років тому +1

    at 4:26, 1 + 1 is 10. In other words, 1 + 1 (decimal) is 2. 2 is represented as 10 in binary. That's why he carries 1 when he has 1 + 1.

    • @ITech2005
      @ITech2005 5 років тому

      Calvin Barajas Thanks

  • @91bravic12
    @91bravic12 5 років тому

    Holy great explanation Batman!!!

  • @stephanieng8058
    @stephanieng8058 7 років тому

    THANKS FOR SAVING MY LIFE

  • @thomaselder4076
    @thomaselder4076 8 років тому

    Clear and concise. Thanks.

  • @SethMtv
    @SethMtv 6 років тому

    My lecturer waffled for bloody 20 minutes and I didnt get this. I watch this and understood in 3 minutes

    • @dalia4289
      @dalia4289 6 років тому

      visual explanation is always better then verbal

  • @mosapz
    @mosapz 9 років тому

    Thank you . You made it looks so easy

  • @anxiousseal556
    @anxiousseal556 4 роки тому

    This is awesome now I understand. Problem is I need to find the negative of 803 which I got but on the converter I see a lot of 1's that I don't know where it comes from

  • @toddbrickley
    @toddbrickley 6 років тому +1

    Thanks dude!! Why can't text books explain things this simply.

  • @bobbiecash8654
    @bobbiecash8654 3 роки тому

    my professor tool 1.5 hours to explain this, confusing me in the process. This is KISS thanks.

  • @Keshaire
    @Keshaire 7 років тому

    Thanks so much. Dude you're the best!

  • @Jamilkhan--
    @Jamilkhan-- 2 роки тому

    very nicely explained thanks 1 less problem in life

  • @justindepakakibo585
    @justindepakakibo585 6 років тому

    Bro you are my savior

  • @almightypear
    @almightypear 8 років тому +1

    This has helped me so much. Cheers

  • @zacharybarnes8360
    @zacharybarnes8360 8 років тому +1

    Incredibly helpful!

  • @jainar7
    @jainar7 6 років тому

    Thank you so much, I finally know how to do it!

  • @Sciman101
    @Sciman101 8 років тому

    This was really simple and concise, thanks!

  • @slickbonz
    @slickbonz 4 роки тому

    That was awesome. Thank you

  • @GianniLucchesi
    @GianniLucchesi 7 місяців тому

    Very helpful! Thanks!

  • @deshie3415
    @deshie3415 5 років тому +1

    i can't like this video enough bro

  • @07uriel
    @07uriel 5 років тому

    My MAN!!! Thank you very much