416 views
4 votes
4 votes
The $16$ bit $2's$ complement representation and the hexadecimal representation after finding 2's complement of the decimal number $2688,$ respectively are:
  1. $0000\;1010\;1000\;0000,\texttt{0xF580}$
  2. $1111\;0101\;1000\;0000,\texttt{0x0A80}$
  3. $1111\;0101\;1000\;0000,\texttt{0xF580}$
  4. $0000\;1010\;1000\;0000,\texttt{0x0A80}$

1 Answer

Best answer
3 votes
3 votes

In $2's$ complement representation for signed numbers, positive numbers are represented as is in binary and negative numbers are represented in their $2's$ complement form.

$2688 = 2048 + 512 + 128 = 0000\;1010\;1000\;0000.$

$2's$ complement of $2688 = \underbrace{1111}_{F}\;\underbrace{0101}_{5}\;\underbrace{1000}_{8}\;\underbrace{0000}_{0} = (F580)_{16}$

selected by
Answer:

Related questions

3 votes
3 votes
1 answer
1
4 votes
4 votes
1 answer
2
gatecse asked Jul 19, 2020
238 views
Let $M$ be the maximum unsigned integer value representable with $4$ bits and $N$ be the maximum signed value representable with $4$ bits (using 2's complement representa...
2 votes
2 votes
1 answer
3
gatecse asked Jul 19, 2020
182 views
The decimal number $31.03125$ can be expressed in scientific notation as :$1.111100001\ast 2^2$$1.111100011\ast 2^3$$1.111100001\ast 2^4$$1.111000001\ast 2^3$
7 votes
7 votes
1 answer
4
gatecse asked Jul 19, 2020
581 views
Which of the following decimal number does not cause a loss of precision when represented in IEEE-754 single precision representation?$4096 \times 4096 \times 4096$$24824...