Check if a number is int or float