title: Setting the precision of a double without using stream (ios_base::precision)
body: <p>Is there a way to do this without using the stream? For example, something like this:</p>
  
  <pre><code>double a = 6.352356663353535;
  double b = a.precision(5);
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>double a = 6.352356663353535;
  std::cout.precision(5);
  std::cout &lt;&lt; a &lt;&lt; std::endl;
  </code></pre>
  
  <p>I am new to C++ and I am curious. Thanks, in advance.</p>