55.14 TO_DISPLAY_FILESIZE Function
This function returns a friendly file size, given a size in bytes (for example, 5.1MB or 6GB).
Syntax
FUNCTION TO_DISPLAY_FILESIZE (
p_size_in_bytes IN NUMBER )
RETURN VARCHAR2;
Parameters
Table 55-11 TO_DISPLAY_FILESIZE Function Parameters
Parameter | Description |
---|---|
|
The input string. |
Returns
Returns the file size with a unit.
Example
select apex_string_util.to_display_filesize(1312312312) from dual;
-> 1.2GB
Parent topic: APEX_STRING_UTIL