202k views
3 votes
what is the decimal sign-and-magnitude value of the 8-bit number represented in 2's complement by 11010011?

User Marknery
by
8.0k points

1 Answer

3 votes

Answer:

-45.

Explanation:

The decimal value is negative because the first digit is a '1'.

11010011

First we subtract 1 :

11010011

-1

11010010

Now we replace each 1 by 0 and 0 by 1:

= 00101101

In decimal this is - (1 + 2^2 + 2*3 + 2^5)

= -45.

User Fateme Mirjalili
by
8.1k points