def show_percentage(value, show_units):
    """Return nicely formatted percentages."""
    if value is None:
        return "unknown"
    retval = round(float(value) * 100.0, 2)
    if show_units:
        return f"{retval} %"
    return retval