title: How can I pad a float with leading zeros when using cout << operator
body: <p>Putting together these questions:</p>
  
  <p><a href="https://stackoverflow.com/q/1714515/2436175">How can I pad an int with leading zeros when using cout &lt;&lt; operator?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/5907031/printing-the-correct-number-of-decimal-points-with-cout">Printing the correct number of decimal points with cout</a></p>
  
  <p>How can I stream to std::cout, for example, this variable</p>
  
  <pre><code>double x = 7.1224
  </code></pre>
  
  <p>And make it look like this?</p>
  
  <pre><code>07.12
  </code></pre>