Learn Binary Arithmetic: Two's Compliment & Multiplication

In summary, the conversation discusses the confusion surrounding two's compliment problems and binary multiplication. The answer given for an example problem includes extra zeros, which may seem unnecessary, but they are used to represent the multiplication by two in binary. Grouping binary digits in sets of four is a common practice for convenience and can also lead to the use of hexadecimal notation. Octal notation, using groupings of three digits, was previously used before hexadecimal became the standard.
  • #1
tankgrrlz
2
0
I was wondering if anyone could suggest a resource to help me understand binary math better. Specifically I am having trouble two's compliment problems and binary multiplication.

An example of where my thought process is getting confused:

1110 * 010

The answer given for this example is 00011100

Now when I work it through I end up with 011100 by just following basic multiplication rules and I cannot figure where the extra two zeros are coming from.

Not really looking for an answer for the problem which is why this isn't posted in the homework section. Really interested in some links to some sites that explain this well or even a text that I could study.
 
Mathematics news on Phys.org
  • #2
The zeros at the beginning don't matter though, do they? It's like sayin 16=016 in decimal-- both are correct.

Note that here you are multiplying the number by two (since two in binary is 10). To do this, you simply shift the number to the left and add a zero.. so 1110*10=11100. (c.f. 17*10=170 in decimal)
 
  • #3
so basically the zeros in the front mean nothing... which makes more sense to me. Is there a reason you would write it out like that ever? I've noticed that there are groupings of 4 in how things are written out sometimes 0010 1110 etc. I haven't gotten that far into the studies yet to know - perhaps its just leading to something further along?
 
  • #4
Binary numbers are inconveniently long for human beings to handle (though not as bad as unary ones!) so grouping the digits makes life more comfortable. Visually it's easier to count fewer groups of 4 digits rather than 4 times as many individual digits. It's the same reason that in many parts of the world, decimal numbers are written in 3-digit groups ("12,345,678").

A more compact notation still is hexadecimal, where each digit corresponds exactly to groups of four binary digits (0000=0, 0001=1, ... 1001=9, 1010=A, 1011=B, 1100=C, 1101=D, 1110=E, 1111=F). So another reason for using groups of 4 binary digits is that you can think of each group as a single hexadecimal digit if you prefer.

In computing applications the groups-of-4 notation is also useful because a byte (the currently fashionable standard unit of data storage) is 8 bits, hence two 4-binary-digit groups.

Before hexadecimal came into fashion everyone used octal notation (and often "characters" of 6 bits and "words" of 36 bits). People from that era will tend to group their binary digits in threes rather than fours, thus confusing everyone else and, increasingly, themselves.
 

What is binary arithmetic?

Binary arithmetic is a method of performing mathematical operations using only two digits, 0 and 1. It is the basis of all digital computing and is used to represent numbers and perform calculations in computer systems.

What is two's complement in binary arithmetic?

Two's complement is a mathematical operation used to represent negative numbers in binary form. It involves inverting all the bits in a number and adding 1 to the result. This allows for the representation of both positive and negative numbers in binary form.

How is two's complement calculated?

To calculate the two's complement of a binary number, the first step is to invert all the bits in the number. Then, add 1 to the result to get the final two's complement representation. For example, the two's complement of 0101 is 1011.

What is binary multiplication?

Binary multiplication is a method of multiplying two binary numbers together. It follows the same rules as traditional multiplication, but with only two digits (0 and 1). The result of binary multiplication is a binary number.

How is binary multiplication performed?

To perform binary multiplication, you need to follow the same steps as traditional multiplication. Start by multiplying the rightmost digit of the second number by each digit in the first number, and then move on to the next digit in the second number. Keep track of any carries that result from each multiplication, and add them to the final result. The result is a binary number that represents the product of the two original binary numbers.

Similar threads

Replies
7
Views
553
Replies
3
Views
2K
Replies
4
Views
2K
Replies
3
Views
1K
  • General Math
Replies
2
Views
1K
  • General Math
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Advanced Physics Homework Help
Replies
2
Views
1K
Replies
6
Views
1K
Back
Top