You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Formats a given value (size, bandwitdth, ...) using the default units (["", "K", "M", "G", "T"]) or the specified one.
15
+
/// For instance FormatValue(1_000_000, "bps") will return "1Mbps" and FormatValue(2_345_000, units: ["", "KiB", "MiB", "GiB", "TiB"]) will return "2.345MiB".
16
+
/// </summary>
17
+
/// <param name="value"></param>
18
+
/// <param name="suffix">An optional suffix which will get added to the output string (for instance, 'bps').</param>
19
+
/// <param name="mathBase">An optional mathematical base (1000, 1024) depending on the unit you'll use.</param>
20
+
/// <param name="units">An array containing the units (related to the base you use).</param>
0 commit comments