151 views

2’s complement representation of the number $(-89)_{10}$ is

1. 7
2. 5
3. 4
4. 3

edited | 151 views
0
in question they have asked for 2's complement in solution they have solved for sum of bits..? ambiguity?
0
I'm not getting the question correctly.But some of the case i can give.

1.Number of bits to represent.

$-2^{n-1} \geq -89$

$2^{n-1} \geq 2^{7}$

n = 8 bits.

2.2's complement of the -89.

10100111 .

Sum of bits = 1 + 0 + 1 + 0 +0+ 1+1+1 => 5.

Number of bits = 8.
0

Exactly. I am also not getting it. And it said 2's complement representation of -89 and not 2's complement of -89.

0

@MiNiPanda i think there is some fault in the question!