OptionalbaseBase to use for number formatting: 2 for binary mode (IEC) or 10 for decimal mode (SI).
OptionaldigitsDecimal digits precision, with default to 2.
OptionallocaleFormat number according to a given locale. It uses the default locale if set to true, and support is
disabled when omitted.
OptionalsignAlways print the sign associated with the numeric bytes value.
OptionalspaceAdd a space between the value and its unit, with default to true.
OptionalsuffixAppend the bytes suffix to the formatted string, with default to true.
OptionalunitUnit to format the bytes value to. It will automatically selects the one that best matches the current bytes value when omitted.
OptionalwidthMinimum width for the formatted string, padding with spaces if necessary.
Formatting options