# Monthly Archives: April, 2018

## From Binary To BCD…And Back Again (Part 2)

In the previous post I described the algorithm for converting a binary number to binary-coded-decimal (BCD). In this post I’ll describe an algorithm for doing the reverse; converting a BCD number to binary. The algorithm is based on repeated division and is best explained by example. Begin with a decimal number and divide by 2. …