title: sprintf dynamic decimals, memory violation
body: <p>I am trying to dynamically show a specific number of decimals. I use this :</p>
  
  <pre><code>    char graduationText[1024];
      sprintf("%.*f", graduationText, decimalsToShow, graduation);
  </code></pre>
  
  <p>However when the program run I get a memory violation error. So I was wondering if sprintf can manage the "%.*f" or if it an error of me. Thanks</p>