nats_convert_bytes
Converts a byte count into a human readable format. For example: "1234567890" (bytes) becomes "1.15 GB".
Last updated
Was this helpful?
Converts a byte count into a human readable format. For example: "1234567890" (bytes) becomes "1.15 GB".
Article Topics: Smarty, Customization
(Required parameters in bold)
bytes
The byte count.
Any positive number or the number zero. (Default is bytes="0".)
bytes="1234567890"
The number of bytes in one of the following formats: bytes, kb, MB, GB, or TB.
nats_convert_bytes automatically chooses the most convenient size.
Wikipedia's list of binary prefixes.
Last updated
Was this helpful?
Was this helpful?