BitGrouping.format

Formats a number to a string, with binary prefix (K, M, T, etc) every 10 bits.

class BitGrouping
static
mstring
format
(
ulong num
,
ref mstring output
,
cstring unit = null
)

Parameters

num ulong

number to be formatted

output mstring

string in which to store the formatted number

unit cstring

string, describing the type of unit represented by the number, to be appended after each binary prefix

Return Value

Type: mstring

formatted string

Meta