Data Representation using 2's Complement

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

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

  • @raghunandanmutalikdesai299
    @raghunandanmutalikdesai299 5 ปีที่แล้ว +266

    +5= 0101
    -5= 1011
    -8= 1000 (Remember 4 bit representation has range starting from -8)
    +8= 01000 (Remember 4 bit representation has range starting from -8 to +7. for +8, we'll require 5 bits with first '0' bit as signed bit.)
    -9= 10111 ( In 5 bit representation)
    +9= 1001 (in 4 bit representation).
    -9= With 2's complement for +9, we get 0111, but since this can not be represented as -9 being signed representation, we will have to use 5 bits, hence 10111 for -9.

    • @sivachittiboina8671
      @sivachittiboina8671 4 ปีที่แล้ว +47

      How can you represent +9 in 4 bits.its wrong
      Bcz with 4 bits we can rep. from -8 to +7 only.

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

      @@sivachittiboina8671 cool bro lecturer had asked to do so thats why!

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

      @@manasgupta5004 bro he is asking answer,range of 4 bit in 2`s complement is -8 to +7,so where is -9.answer may be anything it may be not possible

    • @feliciapattinson9591
      @feliciapattinson9591 3 ปีที่แล้ว +13

      Hey can you explain why -8 isn't 11000???

    • @jaishreeram-o9b47
      @jaishreeram-o9b47 3 ปีที่แล้ว +1

      @@feliciapattinson9591 bcoz the no of bits in 8 is 4 we can't write it in 5 bit its a tricky question..

  • @niteshmodi5468
    @niteshmodi5468 3 ปีที่แล้ว +43

    1.+5=0101 (4 bit, same as simple signed representation)
    -5=1011 (4 bit, 2's complement of +5)
    2.-8=1000 (4 bit, it is 11000 but in 2's complement representation we can eliminate 1 from the most significant bits leaving only one 1 so we can also write 1000)
    3.+8(4 bit) , -9 (4 bit) ::: As range of 2's complement representation for 4 bit is from -8 to +7 so it is not possible to convert +8 and -9 in 2's complement representation.
    +8=01000(5 bit)
    -9=10111(5 bit)
    But if we try in coding, and want to represent +8 and -9 in 4 bit then the most significant bit will be truncated or become meaningless. So
    +8 will become (01000 -> 1000) that is -8 in 2's complement representation
    and - 9 will become (10111 -> 0111) that is +7 in 2's complement(also in other type of representation it is +7 as msb is 0 and no. is positive)

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

    Thanks!

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

    +5= 0101 (4 bit , Range = -8 to 7)
    -5= 1011 (2's comp. Of +5)
    1011= 12 ,which is 7+5=12...
    Hence, in 4 bit range 7+1= -8, 7+2=-7 , 7+3=-6 , similarly 7+5= -5 (bcz of cycling).
    Ex. 4 bit ( -9 )
    => range is -8 to 7.
    Hence -9 is not in this range..
    But -9= -8-1. Bcz of cycling after -8 there is 7...
    -9= 1001 ( which is 7)
    +9=0111( 2's comp)
    Hence 111 is 7

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

      help me plz only if u have a clear concept of what is going on.
      i m new.
      why have u written -9=1001 when +9=1001.-9 is the 2's compl of +9 which is 0111 and 0111=7. Am I right or you?

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

      I have same answer

  • @marcolucidi8687
    @marcolucidi8687 8 ปีที่แล้ว +78

    i) +5 = 0101; -5 = 1011
    ii) -8 = 11000
    iii) +8 and -9 can't be represented with only 4 bits, they need at least 5 bits: +8 = 01000; -9 = 10111

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

      ;)

    • @debapriyadasgupta6534
      @debapriyadasgupta6534 7 ปีที่แล้ว +1

      MarcoLucidi bro how did you get 2's complement of -8 as 11000?

    • @marcolucidi8687
      @marcolucidi8687 7 ปีที่แล้ว +9

      DEBAPRIYA DAS GUPTA
      +8 = 01000
      1's comp = 10111
      1 +
      ----------
      -8 = 11000

    • @debapriyadasgupta6534
      @debapriyadasgupta6534 7 ปีที่แล้ว +1

      MarcoLucidi and in 4bit what is the answer?

    • @marcolucidi8687
      @marcolucidi8687 7 ปีที่แล้ว +14

      DEBAPRIYA DAS GUPTA the answer would be 1000, but be careful since in a 4 bits representation, -8 is the "most negative number" (-2 ^(4 - 1)) and it doesn't have the opposite (+8 can't be represented with 4 bits).
      See here: en.wikipedia.org/wiki/Two's_complement#Most_negative_number

  • @RahulMadhavan
    @RahulMadhavan 6 ปีที่แล้ว +10

    (ia) 2s complement notation of 5: 0101
    (ib) 2s complement notation of -5: 1011
    (ii) 2s complement notation of -8: 11000
    (iiia) 2s complement notation of +8 with 4 bit no: not possible
    (iiib) 2s complement notation of -9 with 4 bit no: not possible
    (iiic) 2s complement notation of +8 with 5 bit no: 01000
    (iiid) 2s complement notation of -9 with 5 bit no: 10111

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

      r u sure ur answers are correct?specially the answer of -9?because 2's compl of -9 is 0111 so y r u adding 1 as the msb?in case of -8 if u take 2's compl u will get same binary number as that of 8 which is 1000 so i think there we have to add 1 as msb to show that it is -ve?plz explain i m confused

  • @modernlogix
    @modernlogix 5 ปีที่แล้ว +7

    This two's complement method is brilliant, two's complement of 1000 gives back same number and same for 0000. Thanks a lot to make that clear enough.....

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

      but 1000 cannot indicates +8 as +8 is represented by 01000 in 2 s complement representation

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

    Answer for -8 is just 1000..
    Because 2's complement range is -2^(n-1) to + 2^(n-1) - 1.. And since n=4, the range is -8 to +7
    => -8 can be represented with 4 bits.

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

      if you want to represent -8 using 2s complement first you have to write it +8 and tell me how you gonna do it (because you already told range is -8 to 7 ...lol)

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

      @@pankajrathore6316 Think of the weights in 2s complement form as -8, +4, +2, +1.. now you can easily understand how you get 4'b1000 for -8.

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

      @@pankajrathore6316 It's correct
      Using 5 bit:
      01000=+8
      10111. 1's complement
      + 1
      11000=-16+8=-8 2's complement
      I like your original comment !

  • @hyphenpointhyphen
    @hyphenpointhyphen 8 ปีที่แล้ว +10

    i)0101;1011
    ii)11000
    iii)01000;-9(4)=not defined, -9(5)=10111

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

      ii) 11000 using 5 bits or 1000 using 4 bits

    • @shshanksingh5115
      @shshanksingh5115 7 ปีที่แล้ว +7

      -9 is not represented using n=4 as it's range is -8 to 7

    • @Bigboss-yl1vv
      @Bigboss-yl1vv 7 ปีที่แล้ว +1

      Shank star -8 cannot be represented in 4 bits
      so the range must be from -7 to 8

    • @kaushit
      @kaushit 6 ปีที่แล้ว +1

      @@shshanksingh5115 answer well explaine👍

  • @lakshitagupta8447
    @lakshitagupta8447 7 ปีที่แล้ว +5

    what's the use of range ? and if we consider this then 9 or -9 doesn't come under that ....how to calculate their values

    • @sampathganesh8393
      @sampathganesh8393 3 ปีที่แล้ว +1

      do you get the solution?

    • @priyansh00938
      @priyansh00938 3 หลายเดือนก่อน

      If your number doesn't lie in the range....then increase the number of bits to get a new range

  • @VNFilmography
    @VNFilmography 3 ปีที่แล้ว +1

    Thank you so much

  • @rakeshkumarchaurasiya4194
    @rakeshkumarchaurasiya4194 6 ปีที่แล้ว

    Ques.3. Consider the 2's complement representation for negative number (-128) will be stored into an 8-bit memory space as.

  • @ankitporwal1920
    @ankitporwal1920 3 ปีที่แล้ว +1

    1 ) 0101 and 1011
    2) 11000
    3) 01000 , 10111

  • @vicveesi
    @vicveesi 7 ปีที่แล้ว +3

    Greetings from Brazil

  • @jainandanmodi1124
    @jainandanmodi1124 8 ปีที่แล้ว +25

    sir, in order to find 2's compliment of 0000, i took its 1,s compliment which is (1111) and added 1to this 1111. i m getting final answer as 10000.where does the m.s.b 1 of final output go?? plzzz reply

    • @sharathchandra6349
      @sharathchandra6349 5 ปีที่แล้ว +13

      It's carry not sum ,so it is neglected

    • @ashleshaupadhyay5864
      @ashleshaupadhyay5864 3 ปีที่แล้ว +1

      yes that last one ine addition is not considered as you put that one that will be not there just 0000

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

      @@ashleshaupadhyay5864 is it the same with finding -8? As we know we write +8 as 01000 (5 bits because 4 bits' range is -8 to +7). After I apply the 2's comp procedure to 01000, i get 11000 (1's comp of 01000 is 10111, add 1). So we just throw away 1 on the most left side because -8 is in the 4 bits range?

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

      the most significant bit (msb) represents sign..so 10000 is -0000

    • @otgateway
      @otgateway 2 ปีที่แล้ว

      @@syedimadali596 should you also not take an additional zero in the positive zero then? like (0)0000 to make it +0000

  • @SSSArcade
    @SSSArcade 2 ปีที่แล้ว +1

    how do we convert a fractional binary number to its 2's compliment ?
    do we flip the bits on the right of the point or not and do we add 1 to the fractional part or the whole part?

  • @anuragpanda1999
    @anuragpanda1999 2 ปีที่แล้ว +1

    Sir,the 1 which we are adding to get 2's complement... is that 1 only needs to be added to a negative variable???

  • @mohitzen
    @mohitzen 2 ปีที่แล้ว +1

    This definitely is a confusing video but the comments made it clear.
    :)

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

    Thanks Sir😃😃

  • @sadmansakib3060
    @sadmansakib3060 6 ปีที่แล้ว +1

    1) +5=0101, -5 = 1011
    2) -8 = 11000
    3) +8 and -9 cant represented in 4 bits . so +8= 01000 and -9 = 10111 (5 bits)

  • @youngee9403
    @youngee9403 7 ปีที่แล้ว +2

    Thank you for this :)

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

    It's a little misleading. Basically, there is no +ve representation in the case of 1's and 2's complement as +ve representation is just a normal positive binary number. (he mentioned that in Video 54 but it is still confusing)

  • @vaishnavipalawar9717
    @vaishnavipalawar9717 4 ปีที่แล้ว +5

    +5 = 0101 (4 bits)
    -5 = 1011 (4bits)
    -8 = 1000 (4bits)
    +8 = 01000 (5bits)
    -9 = 10111 (5bits)

  • @rakeshkumarchaurasiya4194
    @rakeshkumarchaurasiya4194 6 ปีที่แล้ว

    Ques.4. What is 1's complement number of a signed decimal number? the rang of signed decimal number that can be represented by 5-bit???

  • @SussyBaka-ci5xi
    @SussyBaka-ci5xi 3 หลายเดือนก่อน

    love the comment section. let's hope we all succeed.

  • @foodlovers3025
    @foodlovers3025 7 ปีที่แล้ว +2

    based on the range. we can determine

  • @rahulsinghchowhan6868
    @rahulsinghchowhan6868 6 ปีที่แล้ว +1

    How does the computer know if it's a 2's complement and not the number actually? Say I wanna store -6 on the computer for which 2s compliment will be taken as:
    Taking number -> 6 = 0110 (in binary)
    inverting 1s and 0s -> 1001 (1s complement) +1 (adding 1)
    the 2s compliment -> 1010
    This is 2's complement of -6 but also a binary representation of 10 (decimal). How does computer differentiate between these two?

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

      Because the range for 4 bits is -8 to +7. 10 doesn't fall in this. We need one more bit to represent 10.

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

    Thank you SIr

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

    To over come. Problem we should remove the sign bit and do 1s complete for (0000)2 after doing place sign bit

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

    I think at 6:15, 1011 = - 6 instead of -5

  • @ganeshmula4508
    @ganeshmula4508 3 ปีที่แล้ว +1

    H.w problems answers
    +5=0101
    -5=1011
    -8=11000
    +8=01000
    -9=10111

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

      Same answer
      Don't know whether right or wrong 😕🤷

  • @PulkitMalhotra
    @PulkitMalhotra 3 ปีที่แล้ว +9

    2 minute silence for those who are searching answer of +8 and -9 in 4 bit representation.

  • @Sumantashee-e3w
    @Sumantashee-e3w 7 หลายเดือนก่อน

    sir ,if i representation 4 bit number + 15 , and - 15 what is the ans...using signed and 2's com ?

  • @sowjanyabhukya5887
    @sowjanyabhukya5887 6 ปีที่แล้ว +1

    How can we get +8&-9 representation in 4bit and 5bit using 2's complement

  • @danishbhatia1734
    @danishbhatia1734 8 ปีที่แล้ว +20

    sir, make video on the concept of range?

    • @HeIsTheStig
      @HeIsTheStig 7 ปีที่แล้ว +20

      Sorry if I'm 3 months too late, but maybe this will be helpful to future viewers:
      (2^(n-1)-1) to (2^(n-1)-1) is the range for signed binary using 1's complement.
      (2^(n-1)) to (2^(n-1)-1) is the range for signed binary using 2's complement.
      It may seem strange that we use 2's complement at all since 1's may seem more "intuitive," however the reason is that 2's complement allows for convenient addition and subtraction.
      An example: Using 1's Complement: 2= 0010 and -1=1001, so 2+(-1)=0010+1001=1011=-3. This is obviously incorrect, and the answer should be 1.
      Using 2's Complement: 2= 0010 and -1=1111, so 2+(-1)=0010+1111=10010 (at which point we can discard the carry of the apparent MSB 1, as is necessary for 2's complements), and we get the result 0010=1, the correct answer.
      I hope this helped, and best of luck to anyone reading this :)

    • @244harishradhidipocaksono2
      @244harishradhidipocaksono2 3 ปีที่แล้ว

      @@HeIsTheStig why is -1 in 1's comp 1001? Isn't that the signed representation? Based on the previous video, 1 is 0001 therefore -1 in 1's comp is 1110? Like 6 is 0110 and -6 in 1's comp is 1001?

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

      @@HeIsTheStig in my opinion, one's complement is more convenient

  • @Sammyboooi
    @Sammyboooi 2 ปีที่แล้ว +1

    Sir according to range when n=3, then it is from -4 to +3 . But in video, when you found 2's complement representation of -4, you wrote 4 bits i.e. 1100, but should be 3 bits according to range. Why?

    • @RahulSharma-oc2qd
      @RahulSharma-oc2qd 2 ปีที่แล้ว

      Your +4 and -4 both should fall in a range. And that only possible if you will take -8 to +7. In your given range +4 is not in range so your three bit possibility won’t work here. I hope I am right. Correct me if I am wrong.

  • @alvinaug3844
    @alvinaug3844 6 หลายเดือนก่อน

    If the msb is one, then it is negative number. So 1000 is negative. To get it's magnitude, take 2's compliment. i.e 1000. Now magnitude is 8. So 1000 is - 8.

  • @suhaneshivam82
    @suhaneshivam82 7 ปีที่แล้ว +1

    Any no which is less than -7 and greater than +7 can't be represented in 4 bit in case of 1's compliment representation and signed magnitude representation method owing to the range which is -7 to +7 in both cases. So it is misleading to represent +9 in 4 bit as in last representation.

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

    thank you

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

    Glad these +ve or -ve system don't exist now my god

  • @Techmania2658
    @Techmania2658 8 ปีที่แล้ว +10

    Could you explain through a video how to represent a negative decimal number . for e.g -125.3625 etc..
    it would be really helpful of you
    Nesoacademy :)
    Thanks

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

      10000011.101001 ? is it correct?

    • @RahulSharma-oc2qd
      @RahulSharma-oc2qd 2 ปีที่แล้ว

      I guess for that floating point representation (I.e characteristic and mantissa should work)

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

      use the formula 2^n-2^(-m)-N to find 1's complement of a +ve given number. where n is the number of digits in its integer part and m is the no of digits in its decimal part. N is the number itself.

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

    1011=11
    so how we can find 1's complement of 11 (as range for four digit no binary no is from -7 to +7)

  • @somshekharmukherjee1760
    @somshekharmukherjee1760 6 ปีที่แล้ว +6

    Sir theres a lot of confusion in 1's and 2's complement representation, please clarify that. How to represent -8 in 4 bit in 2's complement ? As for 4 variables range is -8 to 7, but if write +8 = 01000 take its 1's complement i.e. 10111 and then add 1 we get 2's complement representation as 11000, which is in 5 bits. So, how to represent in 4 bits ??? PLEASE REPLY!!

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

      -8 = 1000 in 2's complement

    • @deepikasengar4534
      @deepikasengar4534 2 ปีที่แล้ว

      @@diegoalejandrosalcedotolos2639 give reason like full solution . Take it consider to find first 1's c and then 2's compliment only in 4 bit representaion

    • @RahulSharma-oc2qd
      @RahulSharma-oc2qd 2 ปีที่แล้ว

      I guess you can’t write that, you need +8 and -8 both in a range. You can’t choose a range in which -8 falls but +8 not. -8 to +7 would work for finding complements of all the digits till +7 since negative compliment of +7 (I.e -7) falls in range. I hope I am correct, please correct me also if I am wrong.

  • @rakeshkumarchaurasiya4194
    @rakeshkumarchaurasiya4194 6 ปีที่แล้ว

    Ques.1.the 8's complement of the octan number (4060) is???

  • @rakeshkumarchaurasiya4194
    @rakeshkumarchaurasiya4194 6 ปีที่แล้ว

    Ques.2. The 16's complement of the hexadecimal number (A10) is.??

  • @sindhuraannamaneni3184
    @sindhuraannamaneni3184 6 หลายเดือนก่อน

    Why are we not deducting 1 from the max negative range of 2's complement?

  • @yashchauhan3496
    @yashchauhan3496 6 ปีที่แล้ว +1

    What does range in the above video mean???

  • @jayantidas9500
    @jayantidas9500 3 ปีที่แล้ว +1

    Why r u taking 4 bits to represent every number in positive form?
    5 can be represented as 101

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

    sir can u tell me , why range differs in 2's comp. I mean how we get an extra negative integer

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

      bhai mai btau?

    • @itachiuchiha-vs3qb
      @itachiuchiha-vs3qb 3 ปีที่แล้ว

      Unlike the sign/magnitude system, the two's complement system has no separate −0. Zero is considered positive because its sign bit is 0.

  • @suhaneshivam82
    @suhaneshivam82 7 ปีที่แล้ว +8

    Why tutor is skipping the range concept ?

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

    Sir, can you please tell me where is the quiz???I am not able to find it.

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

    sir, you said that if MSB indicates 1, then number is negative but there are many problems where MSB is 0 after finding the 2'complement. eg. -9, -23 How?

    • @mobeenahmad4711
      @mobeenahmad4711 8 ปีที่แล้ว +3

      Danish Bhatia,,first you how to add additional zero to the binary of 9 or 23 the take one's complement and then add 1 which becomes 2,s c you will get correct answer.i-e
      -9 = 1001 add zero
      01001
      10110
      add 1
      10111 =-9
      and like so for more.

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

    Why we take an extra 0 evry tim as msb when converting to 2's comp.??? like 8... 2's compliment is same as -8 if we take 8 as 1000. Soo for that we take 8 as 01000 to get 11000 as 2's compliment. Give mee answer as fast as possible sir.

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

    The homework problems are not available on your site plz do something so that I can check my answers

  • @PardeepKumar-vn9vs
    @PardeepKumar-vn9vs 6 ปีที่แล้ว +1

    Sir ur answer to hm problem never opens

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

    plz some one help me
    2's complement of -8 =?
    8=1000 taking 1's compl we get 0111 now taking 2's compl by adding 1 we get the same binary bits 1000 as that of 8 but since 8 does not come in range of 4 bits in 2's compl so using 5 bits and changing the msb to 1 since it is -ve we will get -8=11000.Am i correct with the concepts and logics of answer?

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

      +8 cannot be represented using 4 bits. Because, the max number possible with 4 bit is 7.so, in 2's compliment 8 is represented as 01000.now -8 is represented as 11000.

  • @debapriyadasgupta6534
    @debapriyadasgupta6534 7 ปีที่แล้ว +1

    sir how to represent -8 in 4 bit using 2's complement ?

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

      DEBAPRIYA DAS GUPTA we can't represent in 4bit but the answer is 11001

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

      DEBAPRIYA DAS GUPTA if still u have dout call me I will explain clearly. 9000717874

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

      BHEEMARAJU KOTE but in lecture it was said that range is from -2^n to 2^n-1

    • @harshitmehta5976
      @harshitmehta5976 7 ปีที่แล้ว +6

      1000 represents -8

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

      @@harshitmehta5976 but how?

  • @otgateway
    @otgateway 2 ปีที่แล้ว

    how is 2's complement of 0000 is 0000? if we take 1's complement of 0000, we get 1111. if we add 1 to 1111, we get 10000.

    • @Simple_Arts_
      @Simple_Arts_ 9 หลายเดือนก่อน

      We have to take only 4 digits

  • @sharminmonika8887
    @sharminmonika8887 9 หลายเดือนก่อน

    1)00000101,11111011
    2)00001000,11111000
    3)4 bit: 1000,1000
    5 bit: 01000,11000
    4 bit: 1001, 0111
    5 bit: 01001, 10111

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

    Sir wt is variable here in Range ??

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

    representation of -9 in 5 bit in 2`s complement:::10111

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

    sir can you please make a lecture series on microprocessors and its programming .please sir

  • @931_chandikagiri7
    @931_chandikagiri7 4 ปีที่แล้ว

    can somebody provide me the solution of +8, -8 and +9

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

    sir how to represent -4 in 4bit?

    • @bheemrajkote998
      @bheemrajkote998 7 ปีที่แล้ว +2

      DEBAPRIYA DAS GUPTA 1100

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

      BHEEMARAJU KOTE sorry by mistake I typed -4
      I was asking for -8 bit

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

      DEBAPRIYA DAS GUPTA I didn't understand. If u want call 9000717874

    • @ShravanBandaru
      @ShravanBandaru 6 ปีที่แล้ว

      DEBAPRIYA DAS GUPTA : 11000

    • @mkutkarsh
      @mkutkarsh 6 ปีที่แล้ว

      1000 in 4 bit, to check this calculate it's 2 complement it will give the positive answer with same magnitude, 2's complement of 1000 is 1000 which is +8.

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

    we need 5 bits to represent -9

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 ปีที่แล้ว

    🔥🔥🔥

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

    How 1011 bit is -5 🤔

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

    why dont you take two digit no.

  • @rakeshkumarchaurasiya4194
    @rakeshkumarchaurasiya4194 6 ปีที่แล้ว

    Sir help me my ques. 1,2,3,and 4

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

    i:-101,(5),0011(+5),1011(-5)
    ii:-11000(-8)
    iii:-11000(-8),10111(-9)there are show 5 bits

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

    🙏🙏🙏

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

    1)0101
    1011
    2)11000
    3)01000
    10111
    -9 can't be represented using 4 bits

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

    How come 1011 = -5 ?

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

    -8 1001
    -9 10111

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

    6:15 it is -3 how can it be -15?

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

      No, its 2's complement representation of -5
      +5 = 0101
      1s complement = 1010
      +1
      -------------------------------------------
      2s complement = 1011

    • @244harishradhidipocaksono2
      @244harishradhidipocaksono2 3 ปีที่แล้ว

      @@borhanularif so its about which method of representation we use? Because 1011 in Signed Magnitude representation is -3 right..? And 1011 in 2's comp is -5. So 1011 represents different quantities in different methods (signed is -3, 1's comp is -4, 2's comp is -5)?

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

      It's correct min 5 bit add
      11011=-16+8+2+1=-5
      11101=-16+8+4+1=-3
      ADD. 11000=-16+8=-8
      -5-3=-8
      5 bit range: -16 to +15

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

      @@244harishradhidipocaksono2 2's complement is used in computer mathematics !