• Support PF! Buy your school textbooks, materials and every day products Here!

Signed binary multiplication

  • Thread starter snoggerT
  • Start date
186
0
15X-7



3. The Attempt at a Solution

- I can't seem to figure this one out for some reason. My first attempt, I used 1111(15)X1001(2's complement of 7), but I can't get the right answer. I believe that the answer should come out to be the 2's complement of 105 since the actual answer is -105, but I can't get that. Please help.
 

Answers and Replies

5
0
Your problem is due to the way in which you have defined your numbers. When using signed numbers the MSB is actually -8.

So, 1111 = -8+(7) = -1 and 1001 = -8+(1) = -7.

To get the correct answer you need to add another MSB such that the MSB now equals -16.

Then, 01111 = 15 and 11001 = -16 +(9) = -7.

To do the multiplication;

01111 X 11001 = 15X(-16) + 15X9 = -105.
 

Related Threads for: Signed binary multiplication

  • Last Post
Replies
11
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
7
Views
1K
Replies
1
Views
18K
Replies
1
Views
3K
Replies
6
Views
2K
Replies
7
Views
5K
Top