title: Python - decimal places (putting floats into a string)
body: <p>I have been using the format:</p>
  
  <pre><code>print 'blah, blah %f' %variable
  </code></pre>
  
  <p>to put variables into strings. I heard it was more pythonic than the '+str()+' approach, and have got quite used to it. 
  Is there a way of specifying the decimal places added to the string with %f? I have tried rounding the number before supplying the variable.</p>
  
  <p>Thanks</p>