w2utils.formatSize

Formats a number as file size.
formatSize(val)
val string or number, a number to format
The val argument should be an integer. The method will return size in Bt or KB or MB or GB or TB depending on the size

User Comments

comments powered by Disqus