convert string values to floats for comparison if the comparable value is an int or float