Why Does Multiplying 15 and -7 in Signed Binary Result in -105?

Click For Summary
SUMMARY

The multiplication of 15 and -7 in signed binary results in -105 due to the representation of numbers in two's complement format. The correct binary representation for 15 is 01111, while -7 is represented as 11001 after adjusting the most significant bit (MSB) to account for negative values. The calculation involves multiplying 15 by -16 and 15 by 9, yielding -105 as the final result. Understanding the significance of the MSB in signed binary is crucial for accurate calculations.

PREREQUISITES
  • Two's complement representation
  • Signed binary arithmetic
  • Understanding of binary multiplication
  • Knowledge of most significant bit (MSB) significance
NEXT STEPS
  • Study two's complement arithmetic in depth
  • Learn binary multiplication techniques
  • Explore signed number representations in computer systems
  • Investigate the impact of MSB on binary calculations
USEFUL FOR

Students and professionals in computer science, particularly those focusing on digital systems, computer architecture, and binary arithmetic.

snoggerT
Messages
183
Reaction score
0
15X-7



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.
 
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K