Register to reply

Signed binary multiplication

by snoggerT
Tags: binary, multiplication, signed
Share this thread:
snoggerT
#1
Apr1-08, 11:20 AM
P: 186
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.
Phys.Org News Partner Science news on Phys.org
Security CTO to detail Android Fake ID flaw at Black Hat
Huge waves measured for first time in Arctic Ocean
Mysterious molecules in space
Uraptor
#2
Apr1-08, 11:26 PM
P: 5
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.


Register to reply

Related Discussions
Signed angle between vectors Linear & Abstract Algebra 12
Signed binary multiplication Calculus & Beyond Homework 7
Multiplying signed negatives Precalculus Mathematics Homework 5
Binary to decimal confusion signed numbers! Engineering, Comp Sci, & Technology Homework 1
Signed measures and uniform integrability Calculus 0