Two's Complement

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 99

  • @komodoensis-rex
    @komodoensis-rex 11 ปีที่แล้ว +4

    I was having a tough time in my Systems Architecture class with this concept, so I searched your channel and sure enough you have a great video about it. You're my hero man. College is looking a lot less scary knowing I have your videos to back me up

  • @BotanTechHelp
    @BotanTechHelp 8 ปีที่แล้ว +2

    Remember -128 and not 128 when using twos complement.

  • @ps4gamers1234
    @ps4gamers1234 3 ปีที่แล้ว +2

    BETTER THAN MY TEACHER'S EXPLANATION😂😂

  • @codebreakthrough
    @codebreakthrough  11 ปีที่แล้ว +5

    I enjoy goof work too though. Thanks!

    • @andreicosma4309
      @andreicosma4309 5 ปีที่แล้ว

      hei Caleb! you are a GOD!

    • @deedewald1707
      @deedewald1707 3 ปีที่แล้ว

      A complex subject taught simply !

  • @andreicosma4309
    @andreicosma4309 5 ปีที่แล้ว +1

    love u Caleb

  • @leenanofal8097
    @leenanofal8097 11 ปีที่แล้ว +2

    This was great! So much better than my textbook ;). If you weren't so young, I would have guessed that you've taught this before. Thank you for the video :).

  • @KemAlimole
    @KemAlimole 10 ปีที่แล้ว +5

    Great video. Thanks.

  • @Fedo0o0on
    @Fedo0o0on 11 ปีที่แล้ว +11

    this is better than the book xD

  • @hotterthanpeppa
    @hotterthanpeppa 11 ปีที่แล้ว

    Thank you so much. Was trying to wrap my head around this vua a text book explanation...confused much. Your vid realy helped me. Now to practise. Keep up the goof work!

  • @thawksf88
    @thawksf88 4 ปีที่แล้ว

    Thanks Caleb!!! YOU'RE AWESOME

  • @adeelmuzaffar1050
    @adeelmuzaffar1050 8 ปีที่แล้ว

    Great job Caleb!!! I was going over some document to learn this and it was difficult. You made it soo easy. Thanks so much.

  • @solomonthell7589
    @solomonthell7589 10 ปีที่แล้ว

    An even easier way to write the 2's compliment is to just re-write the binary exactly as you see it from right-left up to and including the first 1 and then just doing basic inversion (Or 1's complement if you will) for each binary digit from there.

  • @alexpatrick7846
    @alexpatrick7846 9 ปีที่แล้ว

    This video was definitely more helpful than my upper-division lecture I just attended on this topic. You explained things clearly and the examples helped a ton. Keep up the good work bro!

  • @abhinavshobhit7783
    @abhinavshobhit7783 7 ปีที่แล้ว

    you made these things really easy to understand. Thanks

  • @ansharora1395
    @ansharora1395 4 ปีที่แล้ว +1

    i was trying to figure out why do we invert every bit in 2s complement .... didn't find it here... but it stuck suddenly... after something u said..
    LoL xD.... Thanks though.. 😁👍

  • @Fat1Dada
    @Fat1Dada 9 ปีที่แล้ว +1

    Thank you for the explanations. I have a question though,
    Say you have a 8 bit word, 1 0 0 0 0 0 0 1
    How can you tell if it's the number -127 or the number 129?

  • @alitabrizi633
    @alitabrizi633 7 ปีที่แล้ว

    Wow good job man, explained very well, loved how detailed it was.

  • @ling6701
    @ling6701 10 ปีที่แล้ว +2

    Thank you, I got this now.

  • @אוריאגמון-ג5מ
    @אוריאגמון-ג5מ 8 ปีที่แล้ว

    Thanks! that video really helped me understand the method much better!

  • @kmoore7498
    @kmoore7498 10 ปีที่แล้ว

    Thank you, you made Two's Complement more understandable. Being COMPLETELY new to this, I was confused as to why you carried the "1" when you did. Maybe that was in another video. I eventually figured it out but that was the only part I didn't understand at first.

  • @sarahconnolly9889
    @sarahconnolly9889 10 ปีที่แล้ว +1

    thank you so much, so helpfull god bless you

  • @RandomPersonTime
    @RandomPersonTime 8 ปีที่แล้ว

    so how would you solve -45+23 with twos complement? do you change it to 23-45 then convert 45 with 2s complement and add?

  • @Sleepwalker9
    @Sleepwalker9 9 ปีที่แล้ว

    Very detailed explanation, Thank you so much!!

  • @philiprodriguez5197
    @philiprodriguez5197 8 ปีที่แล้ว

    Can you please explain when you add one, why do you put it on the second place instead of the first place? In other words i see that sometimes when you add one, it is not always in the first place.

  • @greyfoxninja1239
    @greyfoxninja1239 5 ปีที่แล้ว

    Thanks for the videos I found them very helpful for upcoming classes.

  • @ranakrakacan1881
    @ranakrakacan1881 10 ปีที่แล้ว +2

    you are so much better than my book.thanks a lot

  • @aslanusta1275
    @aslanusta1275 10 ปีที่แล้ว

    Thank you so much.

  • @solomonthell7589
    @solomonthell7589 10 ปีที่แล้ว

    My problem with this whole concept is how do you differentiate between this "Sign-Magnitude form" or "Two's-Compliment form" and regular binary form. *I.e.)* If I see 11111111 written on paper why would I say this = -1 and not 511?

  • @jayamcfaya
    @jayamcfaya 10 ปีที่แล้ว

    you are better than my cse teacher when it comes to explaining, thank you!:)

  • @sarapalacio9722
    @sarapalacio9722 10 ปีที่แล้ว

    Thank u!
    Ready for my Quiz now! :) I hope .

  • @raghuramsatish9019
    @raghuramsatish9019 9 ปีที่แล้ว

    really good video very clear and easy to understand ,good job

  • @Hetsapa
    @Hetsapa 8 ปีที่แล้ว

    Thank you so so so much for this upload!!!!

  • @aiman_yt
    @aiman_yt 8 ปีที่แล้ว

    Thank you very much.

  • @brandonmyers5222
    @brandonmyers5222 9 ปีที่แล้ว

    how can i tell if the furthest left bit/digit is a sign bit or a part of the number
    in a four bit system does 1000=8 or is it negative 0

  • @tshegodipale
    @tshegodipale ปีที่แล้ว

    9 years later....
    someone somewhere in the world is still saying, "I can finally scratch out that lecturers notes and learn from this amazing channel!💥💥"

  • @nathancrawley5212
    @nathancrawley5212 8 ปีที่แล้ว

    Awesome dude thanks for making the video

  • @amirah.elghanam5035
    @amirah.elghanam5035 9 ปีที่แล้ว +2

    wow u r awesome! please keep making more videos :D

  • @mohammedkhaled8622
    @mohammedkhaled8622 10 ปีที่แล้ว +1

    thanx caleb....you r wonderful....

  • @Boogie-rw9bf
    @Boogie-rw9bf 6 ปีที่แล้ว

    nice work keep it up my brother

  • @AdventuresOfSeth
    @AdventuresOfSeth 9 ปีที่แล้ว

    Very helpful Thank you!

  • @TheJaishree16
    @TheJaishree16 9 ปีที่แล้ว

    you are an excellent teacher........
    plz do post some more videos on binary subtraction.....

  • @nagarajsajjan2798
    @nagarajsajjan2798 5 ปีที่แล้ว

    Thanks a lot for uploading

  • @jyothsnareddi9921
    @jyothsnareddi9921 9 ปีที่แล้ว

    very helpful..thank you so much.....

  • @kaoutharmokrane566
    @kaoutharmokrane566 9 ปีที่แล้ว

    thank you so much that was helpful . but i have a question .... the positive numbers in 2's complement are the same right ? ..i mean .if the number starts with 0 (from the left) we read it the same way ( in binary) whether in 1's complement or 2's complement ?

    • @codebreakthrough
      @codebreakthrough  9 ปีที่แล้ว +1

      +Kaouther Mokrane Correct.

    • @alizzzization
      @alizzzization 9 ปีที่แล้ว

      +CalebTheVideoMaker2 im confused on the negative 2 bit being repesented as 1110 is itbecause the number you initially started with (0010) equaled to 2 and you flipped it i get that bit but then you added 1 (0001) and got 2i dont get how you got the 2 ( its at 11-30 in the video seconds before that.)

  • @pandeni4512
    @pandeni4512 10 ปีที่แล้ว

    When you're adding the one, you don't really show how you get the result. You just kind of do it by yourself and write it down.

  • @peter800
    @peter800 8 ปีที่แล้ว

    Awesome man

  • @codebreakthrough
    @codebreakthrough  10 ปีที่แล้ว

    Watch series with autoplay: Introduction to Operating Systems
    Donations are greatly needed and appreciated! Click to donate: bit.ly/DonateCTVM2

    • @muffinspuffinsEE
      @muffinspuffinsEE 8 ปีที่แล้ว

      If you already have studied this and want a recap of it this is the best video ever! :D No, distractions, no statments like: "this is hard, but I'll try to explain" and so on.

  • @Benstyping
    @Benstyping 10 ปีที่แล้ว

    I thought it went from 0 - 7, how all of a sudden did you jump from it being into two sets of positive and negative numbers?

    • @codebreakthrough
      @codebreakthrough  10 ปีที่แล้ว +2

      Benami Ark I'm showing that if you make a number signed (giving it the ability to be positive or negative), you must now accommodate for negatives and positives in the same amount of space. The far most left bit becomes a sign bit, meaning it decides whether it is positive or negative.
      If you had the same range of numbers unsigned then you get 0-7

  • @alessandrokreutner5797
    @alessandrokreutner5797 10 ปีที่แล้ว

    Why do we have to add 1 after swichting the 1 to 0 and the 0 to one?

    • @afifatehseen2601
      @afifatehseen2601 10 ปีที่แล้ว +1

      Because switching 0s to 1s and 1s to 0s is "1's Complement" and by adding 1 it become "2s complement"

  • @HiddenLotus
    @HiddenLotus 10 ปีที่แล้ว +2

    thank you thank you thank you! my lab homework was killing me XD

  • @dannyhunter5717
    @dannyhunter5717 10 ปีที่แล้ว

    Thank you for this also. The content of this video didn't go in quite as easily as the first however it may be more clear in the morning lol

  • @juanpaul6141
    @juanpaul6141 9 ปีที่แล้ว

    why did my teacher made 32 spaces to place the binary numbers from 0 to 31 instead you are using a 8 spaces place holder..
    thanks

  • @omergonfo4610
    @omergonfo4610 7 ปีที่แล้ว

    excellent work and thnk u very much

  • @Doctor.Fortnite
    @Doctor.Fortnite 9 ปีที่แล้ว

    Q: 59-61 = -2
    When we get 111110 as an answer then we invert and add 1 and get:
    000010. Do we put a negative sign before " 000010" or is it not necessary?
    Like -000010
    Please answer I have exam tomorrow ;-;

    • @DannyPhantumm
      @DannyPhantumm 9 ปีที่แล้ว +2

      +Umer Naeem did you even watch the video, fool?

  • @kawtheralateeq8264
    @kawtheralateeq8264 8 ปีที่แล้ว

    excellent job

  • @tamang1234
    @tamang1234 8 ปีที่แล้ว +1

    i love you caleb

  • @madnc6612
    @madnc6612 7 ปีที่แล้ว

    Anyone know how to represent -32 in 2's complement using 6 bits?

  • @hajeralmahri2404
    @hajeralmahri2404 7 ปีที่แล้ว

    you are amazing!!!!!!!!!!!!!!!

  • @PerryCodes
    @PerryCodes 10 ปีที่แล้ว +1

    I, as well as many others no doubt, really appreciate what you are doing here. The one bit of constructive criticism I'd throw out there is I found myself getting quite bored with the presentation after about ten minutes or so. Perhaps you may want to work on ways to "spice things up" to keep those of us with the attention span of a gnat engaged! Cheers though - keep it up!

    • @aiman_yt
      @aiman_yt 8 ปีที่แล้ว

      Ur right. It's too long

  • @erinjarvis8089
    @erinjarvis8089 11 หลายเดือนก่อน

    Gret video!

  • @Benstyping
    @Benstyping 10 ปีที่แล้ว

    And why is he saying 100 is negative zero? That's four... In binary can negative numbers also be a different positive numbers????

    • @codebreakthrough
      @codebreakthrough  10 ปีที่แล้ว +3

      Benami Ark the first number on the left (1) is the sign, meaning it has no impact on the size of the number but rather an impact on whether it is positive or negative if it is labeled as a signed number. 100 unsigned = 4

    • @Michael-sq5ju
      @Michael-sq5ju 9 ปีที่แล้ว +1

      Benami Ark While in binary 100 is 4, if you interpret the first digit as a sign bit and the other two bits as a number, 1 means the negative sign and 00 means the number 0, or negative 0 when you put it together. It's all about the way you interpret the numbers.

  • @adamdebesai
    @adamdebesai 9 ปีที่แล้ว

    Thank you :)

  • @sarahmanikam1546
    @sarahmanikam1546 5 ปีที่แล้ว

    Thankyou

  • @calvin0630
    @calvin0630 9 ปีที่แล้ว

    I'm watching this. I can't stop thinking about how you are Foggy Nelson from Daredevil

  • @Z3kyTw0
    @Z3kyTw0 10 ปีที่แล้ว

    great video bro

  • @alikharal4480
    @alikharal4480 8 ปีที่แล้ว

    thanks for upload

  • @ngalexngalex
    @ngalexngalex 10 ปีที่แล้ว

    that's so great! =]
    u just save me from the mainland professor x_x

  • @lprater11
    @lprater11 11 ปีที่แล้ว +1

    C'MON KAYLUB

  • @denninosyos
    @denninosyos 9 ปีที่แล้ว

    Dann, that helped! Thanks! P.s. subbed!

  • @poppyrendall847
    @poppyrendall847 9 ปีที่แล้ว +5

    This was so useful, I needed this before my exam which is tomorrow, thank you so much :3

    • @elijahizere
      @elijahizere 9 ปีที่แล้ว +1

      Poppy Rendall How did your exam go?

    • @poppyrendall847
      @poppyrendall847 9 ปีที่แล้ว +1

      Very good thank you :3

    • @olivermitchell4968
      @olivermitchell4968 7 ปีที่แล้ว

      Poppy Rendall ohh shit! My exam is tomorrow!!!

  • @pinkuuu29
    @pinkuuu29 9 ปีที่แล้ว

    Why is -16 -> 110000?

    • @codebreakthrough
      @codebreakthrough  9 ปีที่แล้ว +1

      +Jaeee Kim
      farthest left 1 is a sign bit. meaning it is negative.
      The second farthest left 1 is in the 16s place. Giving the value 16.

    • @deedewald1707
      @deedewald1707 3 ปีที่แล้ว

      @@codebreakthrough Correct you are a great teacher !

  • @is-ig4zh
    @is-ig4zh 10 ปีที่แล้ว +1

    lefthanded xD

  • @curiousmeer
    @curiousmeer 8 ปีที่แล้ว

    Thumbs up !

  • @hotterthanpeppa
    @hotterthanpeppa 11 ปีที่แล้ว

    Really*, good*...apologies...was typing quickly

  • @monsterjazzlicks
    @monsterjazzlicks 8 ปีที่แล้ว +2

    So many damn contradictions in the video it's unreal! These render it unwatchable!

  • @Subtle-System
    @Subtle-System 9 ปีที่แล้ว

    omg, poor kid... Why use as examples the numbers positive 0 and negative 1? lol!!!!
    Such bad explanation... Why post this video? comical at least.