Multiplication with binary unsigned numbers

If you have 10 bits, then 1001 is 11111001, the leading bit is 1 and the number is negative.In summary, the conversation discusses the concept of multiplying negative numbers in 2's complement. It is mentioned that the leftmost bit must be 1 to indicate a negative number, but the number of bits also plays a role in determining the negativity. The example of -122 x -9 is used to demonstrate how the most left bit should be disregarded if it is more numbers than the original. This leads to the question of how it is possible to get a positive number that doesn't equal the expected result.
  • #1
shamieh
539
0
1111010 x 1001 is a negative * a negative so I should get a positive right?

which I got 0001001010.

BUT, if it's -122 x -9 = 1098. How come I get a positive number that doesn't equal 1098. Aren't you supposed to disregard the most left bit if it's more numbers than your original like wouldn't i disregard the 1 carry in 10001001010, because if I included it in the answer wouldn't that make it -122 * -9 which = -1098. And how is that possible.
 
Mathematics news on Phys.org
  • #2
shamieh said:
1111010 x 1001 is a negative * a negative
Why are you saying that? First, are you talking about 2's complement? Second, what number of bits do you have? Only when you know the number of bits, you can say which numbers are negative in 2's complement: the leftmost bit must be 1. But the leftmost bit here means that you have to use all bits, even if this means leading zeros. For example, if you have 8 bits, then 1001 is 00001001, the leading bit is 0 and the number is positive.
 

FAQ: Multiplication with binary unsigned numbers

What is binary multiplication?

Binary multiplication is the process of multiplying two binary numbers, which consist of only 0s and 1s, to obtain a product. This is similar to multiplying decimal numbers, but with a different set of rules and methods.

How do you multiply binary numbers?

To multiply binary numbers, you can use the grid or column method. In the grid method, you align the numbers and perform multiplication and addition in each column. In the column method, you multiply each digit in the second number with the entire first number and add the resulting products.

What is the difference between signed and unsigned binary multiplication?

Signed binary numbers can represent both positive and negative values, while unsigned binary numbers can only represent positive values. This means that signed binary multiplication takes into account the sign of the numbers, while unsigned binary multiplication does not.

How do you handle overflow in binary multiplication?

Overflow can occur in binary multiplication when the resulting product is too large to be represented with the given number of bits. To handle overflow, you can either use more bits to represent the product or use truncation to discard the extra bits and only keep the lower bits of the product.

Can you multiply a binary number by a decimal number?

Yes, you can multiply a binary number by a decimal number. You can convert the decimal number to binary, perform the multiplication using the methods mentioned earlier, and then convert the result back to decimal if needed.

Similar threads

Replies
13
Views
4K
Replies
3
Views
2K
Replies
2
Views
1K
Back
Top