in CO and Architecture
2,645 views
3 votes
3 votes

2s complement of - 539 is 539 so in her it is 21B should be the answer

in CO and Architecture
by
2.6k views

2 Answers

6 votes
6 votes
Best answer
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
by

4 Comments

edited by

@arjun sir,

Any change/update in answer ?

If I follow anser given by you im getting

2's complement of (-539) as 110111100101

But If I follow these answers by Praveen sir

Im getting  2's compliment of (-539) as 539 .

Which one to follow !  Confused !

0
0
you can read the below comments there..
1
1
pc what i understand like thsi

2's complement of -539 is 539

2's complement representation of -539 is -539
1
1
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 vote
1 vote
0 answers
2