A function that checks if a number has digits
A function that checks if a number has digits