Binary Arithmetic
Addition
- There are four basic rules to adding two binary digits.
0 + 0 = 0 carry 0
0 + 1 = 1 carry 0
1 + 0 = 1 carry 0
1 + 1 = 0 carry 1
- Binary digits are added two at a time and any carry must be carried over to the next higher column of digits.
- To get the sum of three digits, add the first two and then add the sum to the third digit.
- To add large binary numbers add one column of digits starting with the least significant position. Add any carry into the next significant column.
For Example:
Add the binary numbers 00111 and 10101 and show the equivalent decimal addition.
Subtraction
- There are four possible combinations when subtracting two binary digits.
0 – 0 = 0 borrow 0
0 – 1 = 1 borrow 1
1 – 0 = 1 borrow 0
1 – 1 = 0 borrow 0
- The borrow from a column of digits must be subtracted from the next most significant column.
- To subtract a large binary number from another large binary number, a borrow may need to be carried over several bit positions.
For Example:
Subtract the binary number 00111 from 10101 and show the equivalent decimal subtraction.