1's complement numbers are those numbers which are obtain after converting 1 to 0 and 0 to 1.
for e.g.
110010
1's complement of this number is:001101
2's complement is obtain by adding 1 in 1's complement of number.
for e.g.
2's complement of above number:001101
+ 1
---------------
001110
Chat with our AI personalities
To get the 2s complement, find the 1s complement (by inverting the bits) and add 1. Assuming that number is [4-bit] binary it would be 1000. If it is preceded by 0s, as in, for example, 0000 1000, then it would be 1111 1000.
I think 7x3 is = to 21
(1234)hex=(0001 0010 0011 0100)2 (DA57)hex=(1101 1010 0101 0111)2 Taking, (1234)hex=(0001 0010 0011 0100)2 =(1110 1101 1100 1011) -1s complement =(1110 1101 1100 1100) -2s complement Now ,add 2s complement of (1234)hex with (DA57)hex, we get 1110 1101 1100 1100 + 1101 1010 0101 0111 1 1100 1000 0010 0011 There is a Carry bit Since,carry is generated.so,no is negative Then take 2s complement of above no.Thus ,we get 0011 0111 1101 1101=(37DD)hex (1234)hex -(DA57)hex =37DD)hex
-15 is 11111111 and 2s com is 1111 0001
3 times 8 it's only 24 always