Homepage
Recent Changes
Search:
History of 2018-03-26 Human-readable filesizes
2018-03-26
18:56 UTC
Revision 1
. . . .
Marcin Borkowski
–
A few days ago I needed to display a filesize (in one of the next blog posts I’ll show why I needed this!). The easiest way is to just display the integer – size in bytes – but of course this is not very human-friendly. The “right” way should use whichever units fit the number.