title: How can I convert a 7 segment binary representation of a number to BCD
body: <p>I can easily find tons of material of converting a number in BCD to a binary representation for a 7 segment display, but can't find any reverse logic. Can someone provide me a way to convert a binary representation of a 7 segment display to a BCD number using logical or bitwise operators.</p>