0
1.9kviews
Calculate (-6)10-(-2)10 using 2's complement method
1 Answer
0
119views

The given numbers are negative decimal numbers

(6)10=10s complement of 6=rnN=101(6)=16

(2)10=10s complement of 2=rnN=101(2)=12

Binary Representation of (16)10=00010000→(1)

Binary Representation of (12)10=00001100→(2)

2s complement of 00001100=11110011+1=11110100(3)

Adding (1) & (2)

11111110100+00010000Discard carry1]00000100

Result is 00000100

Please log in to add an answer.