How can I test if a number is an integer without using type( )?