title: How to cout a float number with n decimal places
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/554063/how-do-i-print-a-double-value-with-full-precision-using-cout">How do I print a double value with full precision using cout?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>float a = 175.;
     cout &lt;&lt; a;
  </code></pre>
  
  <p>If I run the previous code I'll get just 175, how can I cout the number with (for example) 3 decimal places even they were zeros .. How can I print "175.000" ?!</p>