Question

Express the following 2’s complement number in decimal form, assume leftmost bit is the sign bit....

Express the following 2’s complement number in decimal form, assume leftmost bit is the sign bit.

  1. 1000110                            b. 011101                                c. 111111

d.   100000001                        e. 101                                      f. 00011111

g. 101001010                          h. 11                                        i. 10001

Homework Answers

Answer #1

To solve this, first thing we need to keep in mind is that if the signed bit is '0', the number is positive and if the signed bit is '1', the number is negative. If the number is positive, simply convert it to decimal. If the number is negative, first make it positive by inverting its digits and adding 1 and then find its decimal.

The decimal form of the given 2's complement numbers are given below :

a. Since the leftmost bit of 1000110 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 0 0 0 1 1 0

0 1 1 1 0 0 1

+ 1

= 0 1 1 1 0 1 0

Now convert this magnitude to decimal.

0 X 26 + 1X 25 + 1X 24 + 1X 23+ 0 X 22 + 1X 21 + 0 X 2 0 = 32 + 16 + 8 + 2 = 58

And since the original number was negative, the final result in decimal form is -58.

b. Since the leftmost bit of 011101 is 0, so the number is positive.

Now simply convert it to decimal.

0 X 25 + 1X 24 + 1X 23 + 1X 22+ 0 X 21 + 1X 20= 16 + 8 + 4 + 1 = 29

And since the original number was positive, the final result in decimal form is +29.

c. Since the leftmost bit of 111111 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 1 1 1 1 1

0 0 0 0 0 0

+    1

= 0 0 0 0 0 1

Now convert this magnitude to decimal.

0X 25 + 0X 24 + 0X 23+ 0 X 22 + 0X 21 + 1 X 2 0 = 1

And since the original number was negative, the final result in decimal form is -1.

d. Since the leftmost bit of 100000001 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 0 0 0 0 0 0 0 1

0 1 1 1 1 1 1 1 0

+ 1

= 0 1 1 1 1 1 1 1 1

Now convert this magnitude to decimal.

0 X 28 + 1 X 27 + 1 X 26 + 1 X 25 + 1X 24 + 1X 23 + 1X 22+ 1 X 21 + 1X 20= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255

And since the original number was negative, the final result in decimal form is -255.

e. Since the leftmost bit of 101 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 0 1

0 1 0

+ 1

= 0 1 1

Now convert this magnitude to decimal.

0X 22+ 1 X 21 + 1X 20= 2 + 1 = 3

And since the original number was negative, the final result in decimal form is -3.

f. Since the leftmost bit of 00011111 is 0, so the number is positive.

Now simply convert it to decimal.

0 X 27 + 0  X 26 + 0 X 25 + 1X 24 + 1X 23 + 1X 22+ 1 X 21 + 1X 20 = 16 + 8 + 4 + 2 + 1 = 31

And since the original number was positive, the final result in decimal form is +31.

g. Since the leftmost bit of 101001010 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 0 1 0 0 1 0 1 0

0 1 0 1 1 0 1 0 1

+ 1

= 0 1 0 1 1 0 1 1 0

Now convert this magnitude to decimal.

0 X 28 + 1 X 27 + 0 X 26 + 1 X 25 + 1X 24 + 0X 23 + 1X 22+ 1 X 21 + 0X 20= 128 + 32 + 16 + 4 + 2 = 182

And since the original number was negative, the final result in decimal form is -182.

h. Since the leftmost bit of 11 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 1

0 0

+ 1

= 0 1

Now convert this magnitude to decimal.

0 X 21 + 1X 20= 1

And since the original number was negative, the final result in decimal form is -1.

i. Since the leftmost bit of 10001 is 1, so the number is negative.

Now change the sign to get the magnitude of the number.

1 0 0 0 1

0 1 1 1 0

+ 1

= 0 1 1 1 1

Now convert this magnitude to decimal.

0X 24 + 1X 23+ 1 X 22 + 1X 21 + 1 X 2 0 = 8 + 4 + 2 + 1 = 15

And since the original number was negative, the final result in decimal form is -15.

Note : If you still have any doubt/query regarding the solution then let me know in comment. If it helps, kindly give an upVote to this answer.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
The 8-bit signed binary 2's complement number equal to the decimal number -73 is [a].
The 8-bit signed binary 2's complement number equal to the decimal number -73 is [a].
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of...
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of the ROL operation on it with initial carry C=1, show the status bits and then convert the result back to decimal. Repeat with the ASR operation. Write the RTL specification of both operations shown here.
Find the 2's complement of the following decimal numbers (You must convert the number to binary...
Find the 2's complement of the following decimal numbers (You must convert the number to binary and the answer has to be in binary with the same number of bits as the conversion)? a. 20 b. 15 c. 2126 d. 266 e. 466 please explain how you did it!
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base...
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base 2 representation. 1101011001110101 (a) Is this number negative? Why, or why not? (b) Show the resulting value (“bit pattern”) after apply the 2’s complement negation operation to the given value. Is the resulting 2’s complement value (“bit pattern”) a negative number? Explain your answer.
1.Find the 2’s complement of 11111011. What is the decimal value of it 2.Find A-B using...
1.Find the 2’s complement of 11111011. What is the decimal value of it 2.Find A-B using 2’s complement if A=1010 and B=11100 3. A) What is the range of numbers in a 4-bit machine if unsigned integer format is used. B) What is the smallest and largest number when 2’s complement format is used.
c) what is the biggest binary 5 bit number as decimal d) express fraction 15/16 in...
c) what is the biggest binary 5 bit number as decimal d) express fraction 15/16 in standard binary notation e) create boolean truth table for Xbar-YZ f) simplify boolean expression A = (X + Ybar)(X+YZ)
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex....
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex. 000012) DO NOT Extend beyond 5 bits. A = +13 B = +4 C = -6 a.) A - B = _______________ 2        b.) A - B results in overflow. true or false? c.)C + A = _____________ 2 d.)C + A results in overflow. true or false? e.) C - A = ______________________2 f.) C - A results in overflow. true or false?...
In the following problems, assume you are using 2s complement form and do the indicated operation....
In the following problems, assume you are using 2s complement form and do the indicated operation. Leave the answers in binary. Also, assume you are dealing with signed numbers. Also, assume we are saving the answer in a 8-bit register. In this case, for each problem would the saved answer be correct. If not for which of the following problems would if be incorrect and why?   6 + 7   6 + (-7)    -6 + 13 (Note: 13, which is positive...
9)provide the binary and hexadecimal representations for the integer -37 in the following forms. a)Sign and...
9)provide the binary and hexadecimal representations for the integer -37 in the following forms. a)Sign and Magnitude as an 8 bit value b)8 bit 1’s complement as an 8 bit value c)2’s complement as an 8 bit value d)2’s complement as a 12 bit value
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT