Fork me on GitHub

fsize

An article by Gaspard Bucher

Display human readable octet size.

Display human readable octet size.

Takes a number and returns a string with a human readable size information:

  <b do='fsize(3.2*1024*1024)'/>
  --> <b>3.2 Mb</b>

This method uses binary prefix but returns current language values such as “Mb” instead of the standard “Mio”.