Simple and fast log10 for integer