1,140 views
0 0 votes

How can we convert a signed number to it's equivalent unsigned number?

Let's say I have signed number as -2 now what would be it's equivalent unsigned representation.

 

Thanks!

2 Answers

1 1 vote

See if you have number -2 in sign magnitude representation that means you can represent it as 110 here first 1 at MSB is for negative sign if you see this number in unsigned representation then that number is +6.

0 0 votes
if n=-2 then it representation is 1110

to convert to equivalent unsigned number just complement it and add 1

1110->0001->0001+1=0010(2)
Position:
Show:

Related questions

3 3 votes
3 3 answers
207
207 views
GO Classes asked Jun 3
207 views
What decimal value is represented by the following $8$-bit $2$’s complement bit pattern, given in hexadecimal notation?$$A7_{16}=\_\_\_\_\_\_\_\__{10}$$
4 4 votes
1 1 answer
214
214 views
GO Classes asked Jun 5
214 views
A $12$-bit $2$’s complement number has hexadecimal representation $(B6D)_H$. This number is sign-extended to $16$ bits and then arithmetic right-shifted by $2$ positions....
4 4 votes
2 2 answers
225
225 views
4 4 votes
1 1 answer
193
193 views
GO Classes asked Jun 2
193 views
In an $n$-bit signed number system, zero has exactly $2$ different representations in which of the following representations?Sign-magnitude and $1$’s complement only $2$’...