title: Meaning of the number between % and . in printf("%5.2f", 123456.987654)
body: <p>What is the meaning of the number between % and . in <code>printf</code>? Both the <code>printf</code>'s below print the same number.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      double r = 123456.987654;
      printf("%1.2f\n", r);   // 123456.99
      printf("%5.2f\n", r);   // 123456.99
      return 0;
  }
  </code></pre>