There was a small typo in PaulS' post. What you need is
Code:
int o = n % 10
Well thanks to all for ideas. I wound up using PaulS modulo suggestion plus the correction of Arrch, which really helped. Now any 3 digit number can be operated on as digit1, digit2, digit 3. SUPER ![]()