Detecting number of digits in a variable

i want to center some dynamic numbers in a circle… but of course it won’t align properly when there a more digits. So i need to know how many digits there are in order to offset the numbers to center.