43.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 43-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.2GBParent topic: APEX_STRING_UTIL