2,663 views

2 Answers

Best answer
6 votes
6 votes
The question is not about 2's complement of -539, rather what is the 2's complement representation of -539.

In 2's complement representation negative numbers are represented as 2's complement of its absolute value while positive numbers are representes as they are.

So, $(-539)_{10} = 2's(001000011011)_2 = (110111100101)_2 = (DE5)_{16}$.

For $539$, answer would have been $(001000011011)_2 = (21B)_{16}$
selected by
3 votes
3 votes
For 2's Complement representation of -539 (emphasize on representation word)

2's complement representation is a weighted Code representation.

To represent negative no. MSB position ( which must 1) weight is -ve rest are +ve so

-539=-1024+485

101 1110 0101

MSB weight -1024 rest made +485 so collectively they are -539

Now to represent in hexa it should be muliple of 4 bit so add extra 1 in MSB(sign extension it wont affect the Value it remain still -539)

So finally

1101 1110 0101

= (DE5)16

Related questions

1 votes
1 votes
0 answers
2
Na462 asked Aug 6, 2018
1,047 views
3 votes
3 votes
1 answer
3
Hardik Vagadia asked Dec 30, 2016
2,013 views
Is 2's complement code weighted or unweighted? Why?
5 votes
5 votes
1 answer
4