Returns a human readable representation of a (file) size.
Syntax
Smartsite SXML | Copy Code |
---|---|
string string.formatsize(float size) string string.formatsize(float size, enum unit) string string.formatsize(float size, enum unit, string locale) |
Parameters
Name | Data Type | Description |
---|---|---|
size | Float | The size. |
unit | Enum |
The unit.
Enum values:
|
locale | String | The locale. |
Return Value
Data Type | Description |
---|---|
String | String representation of the (file) size, using B/kB/MB/GB notation (e.g. "11.96 MB"). |