title: Long float-number output shows letters
body: <p>I have the following code:</p>
  
  <pre><code>String curDir = ".";
  File fileObject = new File(curDir);
  File[] fileList = fileObject.listFiles();
  
  float fileLengthMegabytes = (float)fileList[i].length() / 1000000;
  </code></pre>
  
  <p>The method fileList[i].length() returns 311 bytes as the type Long.</p>
  
  <p>The previous code results in the following output:</p>
  
  <p>3.88E-4</p>
  
  <p><strong>How do I get my expected output of 0,000311 inside the fileLengthMegabytes variable?</strong></p>