title: Show two digits after decimal point in c++
body: <p>Similar topic is already discussed in the forum. But I have some different problem in following code:</p>
  
  <pre><code>double total;
  cin &gt;&gt; total;
  cout &lt;&lt; fixed &lt;&lt; setprecision(2) &lt;&lt; total;
  </code></pre>
  
  <p>If I give input as <code>100.00</code> then program prints just <code>100</code> but not <code>100.00</code></p>
  
  <p>How can I print <code>100.00</code>?</p>