Double dabble

Algorithm to convert binary numbers to BCD From Wikipedia, the free encyclopedia