title: 'sprintf': double precision in C
body: <p>Consider:</p>
  
  <pre><code>double a = 0.0000005l;
  char aa[50];
  sprintf(aa, "%lf", a);
  printf("%s", aa);
  
  Output: s0.000000
  </code></pre>
  
  <p>In the above code snippet, the variable <code>aa</code> can contain only six decimal precision. I would like to get an output like "s0.0000005". How do I achieve this?</p>