# Calculating bits of bits.

## Binary Arithmetic!

Binary arithmetic is mathematical operations like addition, subtraction, multiplication and division on binary digits 0 and 1. It plays essential part in digital electronics. Let's get started.

### Binary Addition:

Binary addition forms basis for binary subtraction, multiplication and division. There are 4 rules for binary addition. Each of this case gives a sum (bit) and a carry (bit).

A | B | Sum | Carry |
---|---|---|---|

0 | 0 | 0 | 0 |

0 | 1 | 1 | 0 |

1 | 0 | 1 | 0 |

1 | 1 | 0 | 1 |

### Binary Subtraction:

Again, there are four rules for binary subtraction. Subtraction and Borrow will be used here.

A | B | Sub | Borrow |
---|---|---|---|

0 | 0 | 0 | 0 |

0 | 1 | 0 | 1 |

1 | 0 | 1 | 0 |

1 | 1 | 0 | 0 |

### Binary Multiplication:

Binary multiplication is like logical AND operation. The four rules are given below.

A | B | Mul |
---|---|---|

0 | 0 | 0 |

0 | 1 | 0 |

1 | 0 | 0 |

1 | 1 | 1 |

### Binary Division:

Division as we know is repeated subtraction. It has not got 4 rules. Because the divisor can not be 0. So, here is the table for binary division.

A | B | Div |
---|---|---|

0 | 1 | 0 |

1 | 1 | 1 |

We will see some examples for each of these operation in the next post. Stay tuned!

## 0 Comments

Did you enjoy reading it? Comment and help me improve.