title: Decimal precision of floats
body: <blockquote>
    <p>equivalent to log10(2^24) ≈ 7.225 decimal digits</p>
  </blockquote>
  
  <p><a href="http://en.wikipedia.org/wiki/Single_precision_floating-point_format" rel="noreferrer">Wikipedia</a></p>
  
  <blockquote>
    <p>Precision: 7 digits</p>
  </blockquote>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/b1e65aza%28VS.71%29.aspx" rel="noreferrer">MSDN</a></p>
  
  <blockquote>
    <p>6</p>
  </blockquote>
  
  <pre><code>std::numeric_limits&lt;float&gt;::digits10
  </code></pre>
  
  <p>Why numeric_limits return 6 here? Both Wikipedia and MSDN report that floats have 7 decimal digits of precision.</p>