A test for digits in numbers