title: How to display a fixed number of digits in C++ without rounding
body: <p>I have this code (very basic):</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  int main()
  {
  float   a = 0.0,
          b = 0.0,
          c = 0.0;
  
  cout&lt;&lt;"Input a: ";
  cin&gt;&gt;a;
  cout&lt;&lt;"input b: ";
  cin&gt;&gt;b;
  cout&lt;&lt;endl;
  c = a / b;
  
  cout&lt;&lt;"Result: "&lt;&lt;fixed&lt;&lt;setprecision(2)&lt;&lt;c&lt;&lt;endl;
  return 0;
  }
  </code></pre>
  
  <p>When I enter two numbers (say, a = 513 and b = 791) I get 0.65. Calculator shows that the correct answer is 0.648. I understand that my code rounds up the last decimal number but this is not what  I want.</p>
  
  <p>How can I get it to where it just stays as 0.64 and not 0.65? </p>