AvalonStudio.Extensibility.Utils.ByteSizeHelper.ToString C# (CSharp) Method

ToString() public static method

public static ToString ( double bytes ) : string
bytes double
return string
        public static string ToString(double bytes)
        {
            var index = 0;
            while (bytes >= 1000.0)
            {
                bytes /= 1000.0;
                ++index;
            }
            return $"{bytes:N} {Prefixes[index]}";
        }
    }
ByteSizeHelper