Make min and max length a but more forgiving for floats