Allow metrics to be a float as well as an int
Clean up usage of try_number