I want to take a number, from 0 to 999, and extract the units, tens and hundreds.
Right now, I can do it but it's probably too complicated:
I compare to 900. if smaller, then I compare to 800 and so on. Once I figure out the hundreds, I do a Modulo, to get the tens.
then the process starts again: I compare to 90, if smaller, Then I compare to 80....Again, I do a Modulo, to get the units....
I'm pretty sure there is a "cleaner" way to do it, but I can't think of any !