Difference between revisions of "Nats convert bytes"
From TMM Wiki
Jump to navigationJump to searchm |
TMMStephenY (talk | contribs) m |
||
Line 34: | Line 34: | ||
== See Also == | == See Also == | ||
* Wikipedia's list of [http://en.wikipedia.org/wiki/Binary_prefix#Traditional_binary_prefixes binary prefixes]. | * Wikipedia's list of [http://en.wikipedia.org/wiki/Binary_prefix#Traditional_binary_prefixes binary prefixes]. | ||
+ | |||
+ | [[Category:NATS4 Template Functions]] |
Latest revision as of 15:45, 20 May 2011
Applies to NATS 4.0.25 and greater.
nats_convert_bytes
Converts a byte count into a human readable format. For example: "1234567890" (bytes) becomes "1.15 GB".
Alias: convert_bytes
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Example |
---|---|---|---|
bytes | The byte count. | Any positive number or the number zero. (Default is bytes="0".) | bytes="1234567890" |
Output
The number of bytes in one of the following formats: bytes, kb, MB, GB, or TB.
Notes
nats_convert_bytes automatically chooses the most convenient size.
See Also
- Wikipedia's list of binary prefixes.