I am using the PHP function https://stackoverflow.com/a/2510459/425964 written by @Mef https://stackoverflow.com/users/227532/mef to format bytes to kilobytes, megabytes, gigabytes, etc.
The problem is that:
echo formatBytes(9287695, 2);
Returns 8.86 MB. Should'nt it be 9.3 MB? Am I missing something here?
Thanks.