Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

size_format size


Alias

None


Description

Return a smart string representation of the given size [i.e: 64-bit integer].
Example:
size_format 1073741824 ==> 1GB
size_format 536870912 ==> 512 MB
size_format 8192 ==> 8 KB


Parameters

size

Entity size in bytes..


Return Value

String: Formatted string representation of the given size. Use libcox_value_to_string() to extract the processing result.