Function bytes_unit()

← Back to Module url



Module url → bytes_unit()

Description

Get formatted bytes unit

bytes_unit(bytes)


Parameters


Return Value


Usage Example

import url
 
bytes_unit(1024)      ' Returns "1 kB"
bytes_unit(4194304)   ' Returns "4 MB"