Binary is very easy once you have got your head around it. Binary (base 2) follows in the logical sequence.

1024 - 512 - 256 - 128 - 64 - 32 - 16 - 8 - 4 - 2 - 1

A "1" or "0" is entered beneath the corresponding base 2 value depending on the amount given.

## How to Convert from Binary to Decimal

For example, if you are given:

0011

The answer is simply 3.

8 | 4 | 2 | 1 |

0 | 0 | 1 | 1 |

2 + 1 = 3

All you have to do is add values with a "1". Here's another example: 10011011

128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |

1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |

128 + 16 + 8 + 2 + 1 = 155

## How to Convert from Decimal to Binary

The easiest way to convert a decimal into binary is by dividing the decimal by 2. Each time the decimal is divided by two, if it has a remainder write 1; if not write 0.

In the following example the number is 155.

decimal | remainder |

155 | 0 |

77 | 1 |

38 | 1 |

19 | 0 |

9 | 1 |

4 | 1 |

2 | 0 |

1 | 0 |

0 | 1 |

When you've calculated it, simply write out the binary value on the right above, from bottom to top. Which is…

10011011.

To check you can have a look at the Binary to Decimal example above which also uses 155.