822 views
0 votes
0 votes
In 2’s complement the significant information is contained in the 1’s of positive numbers and 0’s of the negative numbers.

1 Answer

0 votes
0 votes
Integer 2's Complement
Signed Unsigned
 
5 5 0000 0101
4 4 0000 0100
3 3 0000 0011
2 2 0000 0010
1 1 0000 0001
0 0 0000 0000
-1 255 1111 1111
-2 254 1111 1110
-3 253 1111 1101
-4 252 1111 1100
-5 251 1111 1011

look at the above example.

The most significant (leftmost) bit indicates the sign of the integer; therefore it is sometimes called the sign bit.

 

If the sign bit is zero,

then the number is greater than or equal to zero, or positive.

If the sign bit is one,

then the number is less than zero, or negative.

Related questions

0 votes
0 votes
1 answer
1
Shimpy Goyal asked Jun 27, 2015
3,654 views
Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be divisible by3 or by 5 or by both 3 and 5 ?(A) 533 (B) 599(C) 467 (D) 66
1 votes
1 votes
1 answer
2
0 votes
0 votes
1 answer
4