Hey,
im writing some code for padding files.
Im wondering how i can count the number of digits in an integer...
i.e.
int a = 232;
int b = 9343;
int c = 23;
int d = 1;
a would have 3 digits, b would have 4 digits, c would have 2 and d would have 1 digit.
i've looked all over - all i can find is bitwise stuff - thats not what i want - the number of set bits is not always the same as the number of digits in the integer...
hope someone can help!
thanks!
