title: How to set number format to show all decimal digits in C++?
body: <p>I have a problem in c++, I have this code to do a division:</p>
  
  <pre><code>long a = 33732193487;
  
  int b = 1000000;
  
  double c = (double)a/(double)b;
  </code></pre>
  
  <p>Well, I would like to store the complete result in the variable c, I mean:</p>
  
  <pre><code>c = 33732.193487;
  </code></pre>
  
  <p>for later, for example, use this value to make a sum or substrac. But I only get to store the result with one decimal.</p>
  
  <p>Is there any option to store the 6 decimals with c++?</p>
  
  <p>Thank you in advance! Sorry if my question is too obvious.</p>