BinaryAdding binary

Computers use binary to process data. There are simple techniques to convert between binary and denary and to add two binary numbers together.

Part ofComputer ScienceData representation

Adding binary

When two numbers are added together in , we take the first number, add the second number to it and get an answer. For example, 1 + 2 = 3.

When we add two numbers together the process is different.

There are four rules that need to be followed when adding two binary numbers. These are:

  • 0 + 0 = 0
  • 1 + 0 = 1
  • 1 + 1 = 10 (said one zero and is binary for 2)
  • 1 + 1 + 1 = 11 (said one one and is binary for 3)

Example

Let’s try adding together two binary numbers: 0101 0011 and 0111 0110.

To get to the answer, use the following method:

Image gallerySkip image gallerySlide1 of 9, Adding the binary numbers 01010011 and 01110110., 1. Starting at the right-hand side, the first sum is 1 + 0 = 1. Put 1 in the answer row below

More guides on this topic