title: Precision of floats with printf
body: <p>As everybody knows, you have limited precision when you use <code>printf</code> to output the value of a <code>float</code>.<br>
  However, there is a trick to increase the accuracy in the output, as this example shows:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      float f = 1318926965;        /* 10 random digits */
      printf("%10.f\n", f);        /* prints only 8 correct digits */
      printf("%10d\n", *(int*)&amp;f); /* prints all digits correctly */
      return 0;
  }
  </code></pre>
  
  <p>and my question is, why don't people use this trick more often?</p>