1's complement and 2's complement | Signed Binary Numbers Explained

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • In this video, different signed binary number representations like 1s complement, 2s complement, and sign-magnitude form representations are explained in detail.
    Timestamps:
    0:00 Introduction
    1:23 Unsigned Binary Numbers
    2:12 Signed Binary Numbers
    3:48 Sign Magnitude Representation
    6:16 1's Complement Representation
    10:08 2's Complement Representation
    Binary Numbers can be represented in two ways.
    1) Unsigned Binary Number Representation
    2) Signed Binary Number Representation
    Using unsigned binary number representation, only positive numbers can be represented.
    Using signed binary number representation, both positive and negative numbers can be represented.
    There are three different ways to represent the signed binary numbers.
    1) Sign Magnitude Representation
    2) 1's Complement Representation
    3) 2's Complement Representation
    In this video, all three different representations are explained with examples.
    For notes, check this link:
    www.allaboutelectronics.org/1...
    The other useful videos related to Binary Number System:
    1) Binary to Decimal Conversion
    • Binary Number System: ...
    2) Decimal to Binary Conversion
    • Decimal to Binary Conv...
    3) Binary Addition and Subtraction
    • Binary Addition and Su...
    This video will be helpful to all the students of science and engineering in understanding, how to represent signed binary numbers in different ways (1's complement, 2's complement, and Sign Magnitude form).
    Support the channel through membership program:
    / @allaboutelectronics
    #ALLABOUTELECTRONICS
    #DigitalElectronics
    #1'sComplement
    #2'sComplement
    --------------------------------------------------------------------------------------------------
    Follow my second channel:
    / @allaboutelectronics-quiz
    Follow me on Facebook:
    / allaboutelecronics
    Follow me on Instagram:
    / all_about.electronics
    --------------------------------------------------------------------------------------------------
    Music Credit: www.bensound.com
  • НаукаНаука

Комментарии • 80

  • @ALLABOUTELECTRONICS
    @ALLABOUTELECTRONICS  3 года назад +9

    Timestamps:
    0:00 Introduction
    1:23 Unsigned Binary Numbers
    2:12 Signed Binary Numbers
    3:48 Sign Magnitude Representation
    6:16 1's Complement Representation
    10:08 2's Complement Representation
    For notes, check this link:
    www.allaboutelectronics.org/1s-complement-and-2s-complement-of-binary-numbers-signed-binary-number-representation/

    • @sambitkumarsahoo5191
      @sambitkumarsahoo5191 7 месяцев назад

      Sir how can we get the 8 bit or any bit of any natural number.please sir tell quickly

    • @LittleDreamer150
      @LittleDreamer150 Месяц назад +1

      Better explained than my lecturer
      You've earned a new subscriber.

  • @ayushgemini
    @ayushgemini 2 года назад +22

    This channel always clear the doubts that any other can't. Thanks a lot

    • @orsg3781
      @orsg3781 Год назад +1

      Yes bro so much ❤

  • @desertstormer04gg42
    @desertstormer04gg42 2 года назад +10

    i honestly never understood this topic until now ! Thanks so much

  • @HariRohith
    @HariRohith 10 месяцев назад +11

    @13:26 the subtration of 2^8 i.e 256 and 34 should result in 222(011011110) but your subtraction gives only 196(11000100) as a result . I would like you to change it for others who can understand now better!

  • @nidhinpgdi4376
    @nidhinpgdi4376 4 дня назад

    bro i have exam in 2 weeks idk anything about binary thanks to you atleast i know half adder and full adder

  • @amanarya3748
    @amanarya3748 2 года назад +3

    Remarkable work please keep making great explanation videos.

  • @abd.shahid
    @abd.shahid 11 месяцев назад +4

    I was converting -12 (Dec) into Binary and found a 32 bit answer. Then I took the last 8bit and converted it to decimal and the answer was 244😂. Our college book didn't cleared the concept of 1's compliment & 2's compliment. That's why that calculator operation took me in a thought loop.
    Then I found this video & it took me out of that loop❤. Now this concept is clear to me. Thank you❤

  • @kainaatmakhani6550
    @kainaatmakhani6550 2 года назад +2

    Great job. Nice explanations and script.

  • @saisudheesh
    @saisudheesh 2 года назад +3

    Simply awesome explanation ❤️

  • @rahulgarai4822
    @rahulgarai4822 Год назад +3

    Great explanation! Liked it a lot...🤗🧠

  • @mohamadzaytoun4566
    @mohamadzaytoun4566 2 года назад +1

    thanks bro , you explain it better than my teacher

  • @sreerajchundayil588
    @sreerajchundayil588 Год назад

    Short and clear video. I was confused with other videos and came here and it explained very well.

  • @vineetsawant9074
    @vineetsawant9074 2 года назад

    Great job.. nice explanations and script

  • @shafiulAlamShafi
    @shafiulAlamShafi Месяц назад +1

    Excellent teaching style

  • @allbd777
    @allbd777 Год назад +1

    Many many thanks from Bangladesh ❤️❤️this video helped me much.

  • @whythishappen
    @whythishappen Год назад +1

    Good explanation and thank you

  • @shiddhantgaming7958
    @shiddhantgaming7958 Год назад +16

    its really sad with such content this channel is underrated

  • @mugunthan2357
    @mugunthan2357 2 года назад

    omg well understood like never before , thank u so much
    #300th like

  • @Abdullahkhan-ks2py
    @Abdullahkhan-ks2py 3 года назад +1

    Nicely explained!! Thanks.

  • @nasirxshah
    @nasirxshah 2 года назад +1

    thank you so much

  • @studypoints14
    @studypoints14 2 года назад +1

    Nice work sir

  • @ececse
    @ececse Год назад

    thankyou so much sir🙏

  • @dreamjourney186
    @dreamjourney186 7 месяцев назад +1

    You are more underrated than saiman says😊

  • @odiavloggersuraj1188
    @odiavloggersuraj1188 2 года назад

    It's amazing 😍

  • @Adityafait
    @Adityafait Год назад

    Thanks you are the best

  • @anitalayal9171
    @anitalayal9171 Год назад +1

    the best video on tthis topic

  • @karanvedi6779
    @karanvedi6779 2 года назад +1

    Very helpfull

  • @SakshiAmbhore-yc6py
    @SakshiAmbhore-yc6py Год назад

    Shortest and simplest way of teaching

  • @divyajonnalagadda6783
    @divyajonnalagadda6783 6 месяцев назад

    thank you sir helpful

  • @iharshgarg
    @iharshgarg Год назад

    loved it

  • @arnavbawdekar3284
    @arnavbawdekar3284 Год назад +2

    I have a question though, how did you find the 2's complement form of -8 in 4bit, in the first place?

  • @poojashah6183
    @poojashah6183 3 года назад +1

    Best explanation 👍🏻

  • @alicemanickam1324
    @alicemanickam1324 Год назад +4

    In 4:23 can't understand the magnitude of 34 in 8bit 00110100

  • @khadija_nawaz
    @khadija_nawaz 2 года назад

    Do we need separate hardware when we are using 1st complimemt and 2nd complimemt encoding? Plzz guide

  • @mayurshah9131
    @mayurshah9131 3 года назад +1

    YOU ARE GENIUS 👍👍

  • @minecraftcookie2929
    @minecraftcookie2929 3 месяца назад

    good video

  • @OneSpin2024
    @OneSpin2024 Год назад +1

    thanks sarge

  • @Simran-qu5ny
    @Simran-qu5ny 2 года назад +1

    Which book is best for electrical b.sc.

  • @ayushgemini
    @ayushgemini 2 года назад +2

    To represent signed Binary no. we use MSB bit to store 0 or 1.
    But if we want to represent an octal number say (-24)8 in signed form. Then in that case MSB will store what numbers to denote +ve and -ve numbers ?
    0 & 7. I guess. Am I right?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  2 года назад

      The digital circuits and computers works on binary number system. And therefore to represent singed numbers, the MSB is used for sign representation. But for any other number system, simply one can put + or minus sign. When computer is dealing with such numbers (other than binary numbers), then first they are converted into binary.
      And the sign is also taken into account.

  • @nishanth6886
    @nishanth6886 Год назад

    Can you give the equivalent decimal value of the given 2’s Complement number (1110.1)2.

  • @shermaineng9503
    @shermaineng9503 3 месяца назад

    why does the 2nd and 3rd method for 2s complement of 34 produce different answers of 11011110 and 11000100?

  • @bishal3527
    @bishal3527 3 месяца назад

    5:25 , the range would be { -2^(n-1)} to {2^(n-1) - 1}

  • @shashanksharma1498
    @shashanksharma1498 8 месяцев назад

    A very good video. Only 1 error. 2^8 representation in 8 bits is not possible. hence you made 9 dashes. Your 2s complement formula should be --> (2^n -1) - N +1

  • @Asifur_Rahman
    @Asifur_Rahman 2 года назад +3

    In 13:01, (2^8 - 34) = (256 - 34) = 11011110 but in your calculation 11000100, how can it be? Can you please explain?

  • @owaisahmed3897
    @owaisahmed3897 11 месяцев назад

    Please check the 3rd method,it's showing different results.

  • @nishant0072008
    @nishant0072008 Год назад

    Why the table shown in magnitude form section has different representations.+7 - 0111 and -7 1000.Where as you explained earlier that in magnitude form we just to inverse the sign bit and copy all other bits as it is.

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Год назад +1

      The table shown is for 1s complement form. The earlier representation which you are talking about is sign magnitude form. In that representation, the MSB is a sign bit. I hope, it will clear your doubt.

  • @Syed_Miraz_Ali
    @Syed_Miraz_Ali 11 месяцев назад +1

    ALL ABOUT ELECTRONICS
    ALL ABOUT ELECTRONICS

  • @shizotaiko6137
    @shizotaiko6137 2 года назад

    Svp⭐️ si on’a le nombre signé suivant représenté sur 8 bits 10010111 est-ce que sa valeur en décimal sera -150 ou bien -23 ,et merci beaucoup

  • @sudipbiswas4718
    @sudipbiswas4718 Месяц назад

    13:24 sir please clearly explain the subtraction
    I think there's some mistake 🙏

  • @tenzindorjee7689
    @tenzindorjee7689 3 года назад

    Thank you so s mucjni

  • @rubeesoni4122
    @rubeesoni4122 5 месяцев назад

    what is twos compliment of negative zero

  • @rollicconducto1550
    @rollicconducto1550 Год назад

    Isnt't there an error at 13:10 with the subtraction part?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Год назад +1

      Yes, there is a mistake in the representation . It should be 11011110.

  • @vaibhavbhasin1221
    @vaibhavbhasin1221 4 месяца назад

    first you say -34 in binary is = 10100010
    then next,
    you said '11011101 this represents -34 in 1s complement form' at 7:06.
    also , it is also called '1s complement of +34' . How can these two diff things be same ?

    • @vaibhavbhasin1221
      @vaibhavbhasin1221 4 месяца назад

      Got it, basically, you see, 1s complement of a positive no. is the same as negative number representation.

  • @chandranidassarma4732
    @chandranidassarma4732 Год назад

    What to do with the carry didgit in 2's complement?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Год назад

      You mean in 2s complement addition? The carry in 2s complement addition is ignored.
      For more info, please check this video: ruclips.net/video/brM0tpBAx8U/видео.html

  • @shizotaiko6137
    @shizotaiko6137 2 года назад

    If we have a binary signed number which is negatif in which form it could be represented ❣️

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  2 года назад +1

      There are different ways of representation. It can be represented in either of 1s or 2s complement form.

    • @shizotaiko6137
      @shizotaiko6137 2 года назад

      @@ALLABOUTELECTRONICS it could be also represented by signed magnitude 💛

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  2 года назад +1

      @@shizotaiko6137 Yes

  • @adityasrivastava9195
    @adityasrivastava9195 2 года назад

    Bhai -11 ka 2s complement form 11110101 hoga na ?

  • @nishupanchal4294
    @nishupanchal4294 3 года назад

    Sir, Please come on classification of binary codes and k-maps.

  • @mb083skfaheem9
    @mb083skfaheem9 3 года назад

    Lol I completed this exam last week and now I am seeing something familiar

  • @edidionganwan2625
    @edidionganwan2625 24 дня назад

    n bit range was wrong its ; -(2^(n-1) to (2^(n-1))-1

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  24 дня назад +1

      The range that you are mentioning is true for 2's complement form, for 1s complement, and sign-magnitude form, the range is from, -(2^(n-1)-1) to (2^(n-1))-1

  • @styrishrodrigues
    @styrishrodrigues 3 года назад

    My exam is postponed due to increase in Corona cases

  • @ayushlawrence281
    @ayushlawrence281 10 месяцев назад

    You don't even know how to subtract... the result is wrong here 12:57