title: Add zeros to a float after the decimal point in Python
body: <p>I am reading in data from a file, modify it and write it to another file. The new file will be read by another program and therefore it is crucial to carry over the exact formatting</p>
  
  <p>for example, one of the numbers on my input file is:</p>
  
  <pre><code>1.000000
  </code></pre>
  
  <p>my script applies some math to the columns and should return</p>
  
  <pre><code>2.000000
  </code></pre>
  
  <p>But what is currently returned is</p>
  
  <pre><code>2.0
  </code></pre>
  
  <p>How would I write a float for example <code>my_float = 2.0</code>, as <code>my_float = 2.00000</code> to a file?</p>