Format Bytes

Pure
FormatBytes

Formats a byte count into a human-readable string (e.g., '1.5 GB', '342 KB').

Type: Pure (no side effects)
Category: Fortuna|String & Text
Keywords: string & text

Inputs

NameTypeDefaultDescription
Bytesint64Bytes parameter

Outputs

NameTypeDescription
ReturnValueFStringReturnValue output

Example Use Cases

Example 1

Display save file sizes.

Example 2

Show download progress in human-readable format.