Operations on Binary Numbers

Binary Addition
Binary Addition is as easy as it gets. We follow the conventional addition technique, with the only change being that the base is 2 instead of 10 and we carry over 1 when the output is greater than 1. The sample problem below perfectly illustrates what we just learnt right now.


Binary Subtraction
Binary Subtraction ain’t that hard either and we follow the same principle as binary addition. When the output is negative, we carry over one bit and the next 1 becomes 0. The following example illustrates the same point:

Binary Multiplication
The binary multiplication is very much similar to the usual multiplication method of integers. First, we need to multiply each digit of one binary number to each digit of another binary number. And then add them all together to get the final result.

Binary Division
The process of binary division is similar to long division in the decimal system. The dividend is still divided by the divisor in the same manner, with the only significant difference being the use of binary rather than decimal subtraction.
