sir,what you did at 25:51 is 2s complement that is scanning from lsb and after you encounter 1st 1 write at it is and then further bits change 0 to 1 and 1 to 0 BUT you told its 1s complement.. so i find its verbal mistake there and if i am wrong do make me understand the concept :-) and thank you .. you are a great mentor :-)
How come -2^3-1= -7?
please explain..11:49
I said to substitute n = 4 at 11:29
Then it becomes -[ (2^3)-1] = -[8-1] = -7
the range is typically from -2^(n-1) to (2^(n-1)) - 1@@learningsimplified6476
-8 (complement form 1000) how ??
sir,what you did at 25:51 is 2s complement that is scanning from lsb and after you encounter 1st 1 write at it is and then further bits change 0 to 1 and 1 to 0 BUT you told its 1s complement.. so i find its verbal mistake there and if i am wrong do make me understand the concept :-)
and thank you .. you are a great mentor :-)
:) That is 2s Complement only. I said similarly it goes with 1s Complement. Listen from 25:30
in 1's complement range should be -(2^(n-1))+1 to (2^(n-1))-1
en.wikipedia.org/wiki/Ones%27_complement
yeah that's what I wrote, -[(2^(n-1))-1]= -(2^(n-1))+1