Javascript File Size Validation Limited to 2 Decimal Places
<p>I'm a javascript-writing novice...</p>

<p>Ben posted this on <a href="http://stackoverflow.com/questions/3717793/javascript-file-upload-size-validation">javascript file upload size validation</a> that I'm using to detect pre-upload file size.  Is there a way to insert some (math) function directly into the code that will limit the file size to two decimal places when the alert is presented?</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $('#image-file').bind('change', function() {
        alert('This file size is: ' + this.files[0].size/1024/1024 + "MB");
    });
&lt;/script&gt;
</code></pre>
