Arithmetic Operation on Binary Numbers
Various arithmetic operations on binary numbers are:
Binary Addition
Binary Addition is a little different from the normal addition but is quite simple. While performing the addition of two binary numbers, we must add them digit by digit. The addition of two binary numbers is also a binary number. Have a look at the table given below to understand the addition of binary numbers.
Binary number 1 |
Binary number 2 |
Sum |
Carry |
---|---|---|---|
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
Binary Subtraction
While performing the subtraction of two binary numbers, we must subtract them digit by digit. Here, there is no carry as in the addition of binary numbers, but a borrow is needed when we subtract a higher digit from a smaller digit. Have a look at the table given below to understand the subtraction of binary numbers.
Binary number 1 |
Binary number 2 |
Difference |
Borrow |
---|---|---|---|
0 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
Binary Multiplication
Binary multiplication is similar to the multiplication of normal numbers. Have a look at the table given below to understand the multiplication of binary numbers.
Binary number 1 |
Binary number 2 |
Multiplication |
---|---|---|
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
Binary Formula
Binary formulas are formulas that are used to convert binary numbers to other number systems. A binary number system is a system of numbers that has a base of 2 and uses only two digits, “0 and 1”. It is one of the four types of number systems and is most commonly employed by computer languages like Java and C++. “Bi” in the word “binary” stands for “two.” Some examples of binary numbers are (11)2, (1110)2, (10101)2, and so on.
In this article, we discuss the arithmetic operations of binary numbers and the conversion formulae to convert binary numbers into other three-number systems.
Table of Content
- Binary Formula
- Arithmetic Operation on Binary Numbers
- Binary to Decimal Formula
- Decimal to Binary Formula
- Binary to Octal Formula
- Binary to Hexadecimal Formula
Contact Us