filesize

Description

Format a number with the appropriate unit (bytes, KB, MB, GB)

Examples

<wt:set name="size" value="1024"/>
[wt:wt.vars.size|filesize] outputs 1 KB