title: Write floats to a csv file to 2 significant figures
body: <p>My writer function looks like: </p>
  
  <pre><code>with open(filename, "w") as file:
      file.truncate(0)
      writer = csv.writer(file)
      writer.writerows(input_list)
  </code></pre>
  
  <p>My <code>input_list</code> looks like: </p>
  
  <pre><code>[[10.0, 11.0, 20.0, 20.0, 0.8], [40.0, 42.0, 20.0, 20.0, 0.6]]
  </code></pre>
  
  <p>My output csv file looks like: </p>
  
  <pre><code>10.0,11.0,20.0,20.0,0.8
  40.0,42.0,20.0,20.0,0.6
  </code></pre>
  
  <p>I want it to look like: </p>
  
  <pre><code>10, 11, 20, 20, 0.8
  40, 42, 20, 20, 0.6
  </code></pre>
  
  <p>I would like the formatting of the spaces after the numbers themselves. While I could add something within the program to create a space between the elements and check for whether the number is less than 1, before casting it to an <code>int</code> (numbers above 1 cannot be floats), I would like to look for a more pythonic and elegant solution.  </p>