title: How to use println in Swift to format number
body: <p>When logging-out a float in Objective-C you can do the following to limit your output to only 2 decimal places:</p>
  
  <pre><code>float avgTemp = 66.844322156
  NSLog (@"average temp. = %.2f", avgTemp);
  </code></pre>
  
  <p>But how do you do this in Swift?
  And how do you escape other characters in <code>println</code> in Swift?</p>
  
  <p>Here's a regular Swift <code>println</code> statement: </p>
  
  <pre><code>println ("Avg. temp = \(avgTemp)")
  </code></pre>
  
  <p>So how do you limit decimal places?</p>
  
  <p>Also, how do you escape double-quotes in <code>println</code>?</p>