def _parseFloats(x,useMax=True):
    """
    Parses float strings. By default, if multiple floats, returns maximum. Can instead return the first.
    """
    try:
        return float(x)
    except ValueError:
        if useMax:
            return max(map(float,x.split(',')))
        else:
            list(map(float,x.split(',')))[0]