TolliumUser::FormatFileSize (open)
Format the size of a file to a readable format, based on user's settings like language and decimal separator
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatFileSize(INTEGER64 filesize, INTEGER decimals, BOOLEAN showbytes)Parameters
INTEGER64 filesizeThe size of the file
INTEGER decimalsNumber of decimals to use
BOOLEAN showbytesIf false, sizes less than 1 kB are shown as '1 kB', otherwise the suffix 'bytes' is used to show the exact number of bytes
Return value
STRINGA formatted string of the submitted file size