Arithmetic Operation on Binary Numbers

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

Similar Reads

Binary Formula

To understand the binary number system, we must first comprehend its operation. Binary numbers are popularly used in electronic circuits where logic gates are implemented and also by microcontrollers for logical computing. A binary number uses only two digits, ” 0 and 1,” where every digit is known as a bit. The input given to the computer is converted into binary language first with the help of an assigned ASCII code. Furthermore, the information is converted from binary language to the user language and is presented as the output....

Arithmetic Operation on Binary Numbers

Various arithmetic operations on binary numbers are:...

Binary to Decimal Formula

A decimal number is a most commonly used number in our everyday lives. The decimal number has a base of 10, and 0 to 9 digits are used to represent it. Some examples of decimal numbers are (14)10, (245)10, (1456)10, etc. Now, to convert a binary number “an-1….a3a2a1a0“, multiply every digit of the given binary number with the powers of 2....

Decimal to Binary Formula

A decimal number can be converted into a binary number by dividing the given number by 2 continuously till we get the quotient as 1 and write the numbers from downwards to upwards....

Binary to Octal Formula

An octal number is a system of numbers that has a base of 8 and uses digits from 0 to 7. The octal number system was initially used as a computer programming language at an early age. In the octal number system, after 7, the numbers start from 10 to 17, then 20 to 27, and so on. They do not contain digits such as 8 and 9. We have two types of methods to convert a binary number into an octal number, i.e., by converting binary to octal directly, and the other one is converting binary to decimal, and then converting the obtained decimal into octal....

Binary to Hexadecimal Formula

A hexadecimal number system is a system of numbers that has a base of 16 and uses numbers from 0 to 7 and alphabets from A to F, where the alphabets from A to F represent the numbers 10 to 15 of the decimal number system. Some examples of the hexadecimal number system are AF16, 7BF, B2A1, etc. We have two types of methods to convert a binary number into a hexadecimal number, i.e., by converting binary to hexadecimal directly, and the other one is converting binary to decimal, and then converting the obtained decimal into hexadecimal....

Solved Examples on Binary Formula

Example 1: Convert the decimal number (73)10 into binary....

FAQs on Binary Formula

Define a binary number system....