I'm trying to learn binary number system and almost very new. I just finished some chapter on binary number conversation,addition,subtraction etc with some basic thing's.
But now I see a chapter on 1's complement and 2's complement. I know what is signed number,signed magnitude and how binary digit stored in memory in 8bits,16 bits etc. But the problem is I couldn't understand why 1's complement and 2's complement. Also why should we use 2's complement and why it's better etc.
I'm following a book it's have the guideline to convert into 1's complement and 2's complement. But nothing explained why 1's complement and 2's complement.
So I need some help to understand it more deeply. Any book suggestions for binary number system etc is appreciated.
Thanks In Advance Robin
1's complement is simply a Bitwise NOT gate, i.e. 1011 becomes 0100.
2's complements is the most commonly used to representation of signed integers because it obeys the rules of addition and subtraction.If you add 1 to 1111, you get 0000. Hence 1111 should be -1.