title: Round off floating point values in dict
body: <p>I am struggling to round off floating values in dictionary. To generate the dictionary I have used:</p>
  
  <pre><code>[{i: x.count(i)/float(len(x)) for i in x} for x in l]
  </code></pre>
  
  <p>My dictionary is:</p>
  
  <pre><code>P = [{'A': 0.700000000, 'B': 0.255555555}, {'B': 0.55555555, 'C': 0.55555555}, {'A': 0.255555555, 'B': 0.210000000, 'C': 0.2400000000}]
  </code></pre>
  
  <p>I need:</p>
  
  <pre><code>P = [{'A': 0.70, 'B': 0.25}, {'B': 0.55, 'C': 0.55}, {'A': 0.25, 'B': 0.21, 'C': 0.24}]
  </code></pre>