I know I've seen this somewhere before, but I can't find it anywhere now so I apologise if this has been asked and answered in the past.
I am trying to convert decimal numbers into binary in such a way that the individual bits are separate from each other and the numbers are always represented by 8 bits. For example, I would like to have the number 2 come out as 0, 0, 0, 0, 0, 0, 1, 0 with each of those digits in separate integer boxes.
Any help would be greatly appreciated. Thanks so much.