def _coerce_vary_rounds(value):
    """parse vary_rounds string to percent as [0,1) float, or integer"""
    if value.endswith('%'):
        return float(value.rstrip('%')) * 0.01
    try:
        return int(value)
    except ValueError:
        return float(value)
