Hope someone can figure this one out.
I'm using this to display the filesizes of several files in a folder...
number_format (round (filesize($currentfile) /1048576)) . "mb"
...which displays my file names like this:
27mb
35mb
10mb
etc.
But, if the filesize is less than 1mb, it displays onscreen as:
0mb
How can I modify the PHP so that if it encounters a 250k file for example, it shows displays as ".25mb"?
Thanks in advance.