# Count Digits in an Integer

The following snippet uses `log()`

to find the number of digits in the integer `x`

. The result is 5.

Source: http://stackoverflow.com/questions/1306727/way-to-get-number-of-digits-in-an-int

The following snippet uses `log()`

to find the number of digits in the integer `x`

. The result is 5.

Source: http://stackoverflow.com/questions/1306727/way-to-get-number-of-digits-in-an-int