bytes_format
Convert byte values into readable units (B, KB, MB, GB, TB, PB) with customizable decimal places.
Instructions
Convert bytes to human-readable format (B, KB, MB, GB, TB, PB).
Parameters:
bytes — Number of bytes.
precision — Decimal places (default: 2).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| precision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |