Allow metrics to be a float as well as an int