def METHOD_NAME(num,args):
    if args.count:
      return str(num)
    pStr="%."+str(args.precision)+"f %s"
    for prefix in ['KiB','MiB','GiB']:
        num /= 1024.0
        if num < 1024.0 or args.units == prefix:
            return pStr % (num, prefix)
    return pStr % (num, prefix)