PHP convert bytes to correct units
<p>I am using the <code>PHP</code> function <a href="http://stackoverflow.com/a/2510459/425964">http://stackoverflow.com/a/2510459/425964</a> written by <code>@Mef</code> <a href="http://stackoverflow.com/users/227532/mef">http://stackoverflow.com/users/227532/mef</a> to format bytes to kilobytes, megabytes, gigabytes, etc.</p>

<p>The problem is that:</p>

<pre><code>echo formatBytes(9287695, 2);
</code></pre>

<p>Returns <code>8.86 MB</code>. Should'nt it be <code>9.3 MB</code>? Am I missing something here?</p>

<p>Thanks.</p>
