Hi All,
I have the same question. But how come decimal value 100 ( 0110 0100) one's complement becomes -101 ( 0110 0101 ==> implies 1001 1010) ??
AFAIK one's compliment is inverting bits and this applicable usually negative numbers but not positive numbers.
Lets keep this fundamental aside for second and lets explore on this
100 (base10) 0110 0100 (base2) Ones compliment ==> 1001 1011
-101 (base 10) 0110 0101 (base2) On'es compliment ==> 1001 1010 ==> Twos compliment by adding 1 ==> 1001 1011
So its ones compliment of 100 matching to two's compliment of -101 ..
Correct me if this right assumption ?