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