

def format_and_scale_number(x, unit):
    '\n    Picks a good scale for representing a number and formats it.\n    '
    if (x < 1000):
        return ('%d %s' % (scaled, unit))
    (scale, suffix) = _pick_scale_and_suffix(x)
    scaled = (x / scale)
    if (scaled < 10.0):
        fmt = '%1.2f %s%s'
    elif (scaled < 100.0):
        fmt = '%1.1f %s%s'
    else:
        fmt = '%1.0f %s%s'
    return (fmt % (scaled, suffix, unit))

dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/utils.py format_and_scale_number/VarMisuse@28/66 `x`->`scaled`