Commerce v1 Class Reference Formatters filesize

With the filesize formatter, an integer number of bytes is formatted into the most appropriate readable size.

For example a value of 2355 would be formatted as 2.31 KB while 3.932.160 is 3.75MB.

The decimal point is used from the currently active currency.