title: Easy pretty printing of floats?
body: <p>I have a list of floats. If I simply <code>print</code> it, it shows up like this:</p>
  
  <pre><code>[9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006]
  </code></pre>
  
  <p>I could use <code>print "%.2f"</code>, which would require a <code>for</code> loop to traverse the list, but then it wouldn't work for more complex data structures.
  I'd like something like (I'm completely making this up)</p>
  
  <pre><code>&gt;&gt;&gt; import print_options
  &gt;&gt;&gt; print_options.set_float_precision(2)
  &gt;&gt;&gt; print [9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006]
  [9.0, 0.05, 0.03, 0.01, 0.06, 0.08]
  </code></pre>