decimal place finder - useful in assigning colours based on individual digits in a number