title: C++: long to float with decimals?
body: <p>I have a function that takes <code>long</code> as an argument, and I want it to return that number as a <code>float</code> with seven decimals.</p>
  
  <p>This <code>long</code> gets in to the function: 631452947, and I want the function to convert it and return this <code>float</code>: 63.1452947</p>
  
  <p>How can I do this?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>float makeLatLon (long val) {
      float tzt = (float)val/10000000.0;
      return tzt;
  }
  </code></pre>
  
  <p>but it does not work.</p>