File size on disk, optionally scaled.
Signature (positional):
<file-size>,
<file-size:unit>, or
<file-size:unit,decimals>
| Option | Description |
|---|---|
unit |
Omit or auto (default), b/bytes,
kb, mb, gb (case-insensitive). Auto appends
a unit suffix.
|
decimals |
Digits after the decimal point (default 0). |
For a 1,048,576-byte file (exactly 1 MiB):
| Token | Result |
|---|---|
<file-size> |
1 MB (auto) |
<file-size:kb> |
1024 KB |
<file-size:mb,2> |
1.00 MB |
<file-size:bytes> |
1048576 B |