Correct Way to set maximum double precision for ostringstream
<p>By referring to </p>

<p><a href="http://stackoverflow.com/questions/554063/how-do-i-print-a-double-value-with-full-precision-using-cout">http://stackoverflow.com/questions/554063/how-do-i-print-a-double-value-with-full-precision-using-cout</a></p>

<p>and</p>

<p><a href="http://stackoverflow.com/questions/747470/what-is-the-meaning-of-numeric-limitsdoubledigits10">http://stackoverflow.com/questions/747470/what-is-the-meaning-of-numeric-limitsdoubledigits10</a></p>

<p>I am slightly confused.</p>

<p>Shall I used :</p>

<pre><code>ss.precision(std::numeric_limits&lt;double&gt;::digits10);
</code></pre>

<p>or</p>

<pre><code>ss.precision(std::numeric_limits&lt;double&gt;::digits10 + 2);
</code></pre>

<p>to get maximum double precision?</p>
