title: Getting accurate file size in megabytes?
body: <p>How can I get the accurate file size in MB? I tried this:    </p>
  
  <pre><code>compressed_file_size = File.size("Compressed/#{project}.tar.bz2") / 1024000
  
  puts "file size is #{compressed_file_size} MB"
  </code></pre>
  
  <p>But it chopped the 0.9 and showed 2 MB instead of 2.9 MB</p>