public static string GetSizeStringDouble(this ByteType type, long size, int digit) { var b = type.SizeToByteName(size); var roundSz = Math.Round(type.GetSizeDouble(size), digit); return($"{roundSz} {b}"); }
public static string GetSizeString(this ByteType type, long size) { var b = type.SizeToByteName(size); return($"{type.GetSize(size):#,0} {b}"); }