+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.
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)
+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
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?
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
(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
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
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.....
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.
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)
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
@@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?
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?
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)
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?
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 :)
@@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?
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?
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.
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.
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.
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
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.
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 give reason like full solution . Take it consider to find first 1's c and then 2's compliment only in 4 bit representaion
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.
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?
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.
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.
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?
+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.
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.
@@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)?
+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.
How can you represent +9 in 4 bits.its wrong
Bcz with 4 bits we can rep. from -8 to +7 only.
@@sivachittiboina8671 cool bro lecturer had asked to do so thats why!
@@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
Hey can you explain why -8 isn't 11000???
@@feliciapattinson9591 bcoz the no of bits in 8 is 4 we can't write it in 5 bit its a tricky question..
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)
Thank you brother pura samaj gya tere bajase
thank you bro
thank you bro
Thanks!
+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
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?
I have same answer
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
;)
MarcoLucidi bro how did you get 2's complement of -8 as 11000?
DEBAPRIYA DAS GUPTA
+8 = 01000
1's comp = 10111
1 +
----------
-8 = 11000
MarcoLucidi and in 4bit what is the answer?
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
(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
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
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.....
but 1000 cannot indicates +8 as +8 is represented by 01000 in 2 s complement representation
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.
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)
@@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.
@@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 !
i)0101;1011
ii)11000
iii)01000;-9(4)=not defined, -9(5)=10111
ii) 11000 using 5 bits or 1000 using 4 bits
-9 is not represented using n=4 as it's range is -8 to 7
Shank star -8 cannot be represented in 4 bits
so the range must be from -7 to 8
@@shshanksingh5115 answer well explaine👍
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
do you get the solution?
If your number doesn't lie in the range....then increase the number of bits to get a new range
Thank you so much
Ques.3. Consider the 2's complement representation for negative number (-128) will be stored into an 8-bit memory space as.
1 ) 0101 and 1011
2) 11000
3) 01000 , 10111
Greetings from Brazil
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
It's carry not sum ,so it is neglected
yes that last one ine addition is not considered as you put that one that will be not there just 0000
@@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?
the most significant bit (msb) represents sign..so 10000 is -0000
@@syedimadali596 should you also not take an additional zero in the positive zero then? like (0)0000 to make it +0000
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?
Sir,the 1 which we are adding to get 2's complement... is that 1 only needs to be added to a negative variable???
This definitely is a confusing video but the comments made it clear.
:)
Thanks Sir😃😃
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)
Thank you for this :)
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)
+5 = 0101 (4 bits)
-5 = 1011 (4bits)
-8 = 1000 (4bits)
+8 = 01000 (5bits)
-9 = 10111 (5bits)
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???
love the comment section. let's hope we all succeed.
based on the range. we can determine
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?
Because the range for 4 bits is -8 to +7. 10 doesn't fall in this. We need one more bit to represent 10.
Thank you SIr
To over come. Problem we should remove the sign bit and do 1s complete for (0000)2 after doing place sign bit
I think at 6:15, 1011 = - 6 instead of -5
H.w problems answers
+5=0101
-5=1011
-8=11000
+8=01000
-9=10111
Same answer
Don't know whether right or wrong 😕🤷
2 minute silence for those who are searching answer of +8 and -9 in 4 bit representation.
RIP bhai
sir ,if i representation 4 bit number + 15 , and - 15 what is the ans...using signed and 2's com ?
How can we get +8&-9 representation in 4bit and 5bit using 2's complement
sir, make video on the concept of range?
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 :)
@@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?
@@HeIsTheStig in my opinion, one's complement is more convenient
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?
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.
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.
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.
thank you
Glad these +ve or -ve system don't exist now my god
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
10000011.101001 ? is it correct?
I guess for that floating point representation (I.e characteristic and mantissa should work)
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.
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)
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!!
-8 = 1000 in 2's complement
@@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
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.
Ques.1.the 8's complement of the octan number (4060) is???
Ques.2. The 16's complement of the hexadecimal number (A10) is.??
The 16's complement of (A10) base16 is=(5F0)base16
Why are we not deducting 1 from the max negative range of 2's complement?
What does range in the above video mean???
Yes same ques..plz reply
Why r u taking 4 bits to represent every number in positive form?
5 can be represented as 101
sir can u tell me , why range differs in 2's comp. I mean how we get an extra negative integer
bhai mai btau?
Unlike the sign/magnitude system, the two's complement system has no separate −0. Zero is considered positive because its sign bit is 0.
Why tutor is skipping the range concept ?
Sir, can you please tell me where is the quiz???I am not able to find it.
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?
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.
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.
The homework problems are not available on your site plz do something so that I can check my answers
Sir ur answer to hm problem never opens
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?
+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.
sir how to represent -8 in 4 bit using 2's complement ?
DEBAPRIYA DAS GUPTA we can't represent in 4bit but the answer is 11001
DEBAPRIYA DAS GUPTA if still u have dout call me I will explain clearly. 9000717874
BHEEMARAJU KOTE but in lecture it was said that range is from -2^n to 2^n-1
1000 represents -8
@@harshitmehta5976 but how?
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.
We have to take only 4 digits
1)00000101,11111011
2)00001000,11111000
3)4 bit: 1000,1000
5 bit: 01000,11000
4 bit: 1001, 0111
5 bit: 01001, 10111
Sir wt is variable here in Range ??
No. of bits
representation of -9 in 5 bit in 2`s complement:::10111
sir can you please make a lecture series on microprocessors and its programming .please sir
Learn with manu wtf😂😂😂😂😂
can somebody provide me the solution of +8, -8 and +9
sir how to represent -4 in 4bit?
DEBAPRIYA DAS GUPTA 1100
BHEEMARAJU KOTE sorry by mistake I typed -4
I was asking for -8 bit
DEBAPRIYA DAS GUPTA I didn't understand. If u want call 9000717874
DEBAPRIYA DAS GUPTA : 11000
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.
we need 5 bits to represent -9
🔥🔥🔥
How 1011 bit is -5 🤔
011=5 & 1=-
~1011=-5
why dont you take two digit no.
Sir help me my ques. 1,2,3,and 4
i:-101,(5),0011(+5),1011(-5)
ii:-11000(-8)
iii:-11000(-8),10111(-9)there are show 5 bits
🙏🙏🙏
1)0101
1011
2)11000
3)01000
10111
-9 can't be represented using 4 bits
How come 1011 = -5 ?
-8 1001
-9 10111
6:15 it is -3 how can it be -15?
No, its 2's complement representation of -5
+5 = 0101
1s complement = 1010
+1
-------------------------------------------
2s complement = 1011
@@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)?
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
@@244harishradhidipocaksono2 2's complement is used in computer mathematics !