title: Why does rounding disappear in a dict object?
body: <p>I have a pandas Series:</p>
  
  <pre><code>freq_features = num_occurrences/num_nodes
  print(type(freq_features))
  print(freq_features)
  
  &lt;class 'pandas.core.series.Series'&gt;
  PAT    0.386667
  NUR    0.360000
  MED    0.146667
  ADM    0.106667
  </code></pre>
  
  <p>I round each value to 2 decimal places:</p>
  
  <pre><code>freq_features_rounded = freq_features.round(2)
  print type(freq_features_rounded)
  print freq_features_rounded
  
  &lt;class 'pandas.core.series.Series'&gt;
  PAT    0.39
  NUR    0.36
  MED    0.15
  ADM    0.11
  dtype: float64
  </code></pre>
  
  <p>But when I use the <code>to_dict()</code> command, I get the non-rounded values (except for the <code>ADM</code> key):</p>
  
  <pre><code>freq_features_dict = freq_features_rounded.to_dict()
  print freq_features_dict
  {'NUR': 0.35999999999999999, 'ADM': 0.11, 'PAT': 0.39000000000000001, 'MED': 0.14999999999999999}
  </code></pre>
  
  <p>Why is this happening, and how can I get my rounded values into the <code>dict()</code> object as values?</p>