181k views
0 votes
System uses a 6-bit 2’s complement signed integer representation. What is the range of decimal values it can represent?

User Just James
by
8.1k points

1 Answer

2 votes

Answer:

-32 to +31

Step-by-step explanation:

6 bit 2s complement representation will be of the form b1b2b3b4b5b6 where each bit is either 0 or 1.

The largest positive number that can be represented using this scheme is 011111

Translating this to decimal this is 1*2^4 + 1^2^3 + 1^2^2 + 1^2^1 + 1^2^0

=16 + 8 + 4 + 2 + 1 =31

The smallest negative number that can be represented using this scheme is 100000

Translating this to decimal = -1 * 2^5 = -32

So the range of decimal values that can be represented is -32 to +31.

User Rjacks
by
8.4k points

Related questions

1 answer
4 votes
222k views
1 answer
1 vote
145k views