2,722 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

469
views
0 answers
0 votes
srestha asked Dec 27, 2018
469 views
Consider given below $n$ bit integer data which is expressed in sign $2’s$ complement notation$K=\left ( a_{n-1} a_{n-2}....a_{1} a_{0} \right )$The value expression of...
1.1k
views
0 answers
1 votes
Na462 asked Aug 6, 2018
1,088 views
2.1k
views
1 answers
3 votes
Hardik Vagadia asked Dec 30, 2016
2,077 views
Is 2's complement code weighted or unweighted? Why?
1.3k
views
1 answers
5 votes
pC asked Nov 27, 2015
1,339 views
1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 + 0 1 1 0 0 0 0 0 Please justify your answer. I'm not getting a clue whether the give...