basically I want to return the number of digits in the int -> values like this:
(int)1 => 1 (int)123 => 3 (int)12345678 => 8
I kno
Use logarithms base 10:
int length = (int)floor(log10((float)number)) + 1; // works for >0