How to find number of digits of a number

2017-08-17 46

Find the number of digits of an number within seconds using stirling's approximation.