String FormatSize UnitSize Example

Demonstrates the use of the various UnitSize enums.

Smartsite SXML CopyCode image Copy Code
{string.formatsize(1000000, bytes)} b
{string.formatsize(1000000, kilobytes)} kb
{string.formatsize(1000000, megabytes)} mb
{string.formatsize(1000000, gigabytes)} gb
{string.formatsize(1000000, terabytes)} tb
{string.formatsize(1000000, petabytes)} pb
{string.formatsize(1000000, exabytes)} xb
Example Result CopyCode image Copy Code
1,000,000.00 b
976.56 kb
0.95 mb
0 gb
0 tb
0 pb
0 xb
SXML