+ 3

What's the 2's compliment of 11010 Here the first bit represents the sign bit ??

I have a problem related to signed and unsigned numbers any one knows how to convert in 2's compliment ?

6th Nov 2017, 7:12 AM
Rishabh
Rishabh - avatar
2 Answers
+ 1
@gordie we apply the xor operation to sign bit also ?? means the first 1 that is representing -1 also get changed after applying xor or we doesn't include the sign bit in xor operation ?? but in your soln you have used xor operation in sign bit also ?? My confusion is that sign bit also get changed by changing whole 11010 into 2's compliment ?
6th Nov 2017, 10:30 AM
Rishabh
Rishabh - avatar
- 1
@Gordie Thank you !! thanks for d help !! it's for my semester exams :-)
6th Nov 2017, 10:40 AM
Rishabh
Rishabh - avatar