title: Using floats with sprintf() in embedded C
body: <p>Guys, I want to know if <code>float</code> variables can be used in <code>sprintf()</code> function.</p>
  
  <p>Like, if we write:</p>
  
  <pre><code>sprintf(str,"adc_read = %d \n",adc_read);
  </code></pre>
  
  <p>where <code>adc_read</code> is an integer variable, it will store the string </p>
  
  <blockquote>
    <p><code>"adc_read = 1023 \n"</code> </p>
  </blockquote>
  
  <p>in <code>str</code> (assuming that  <code>adc_read = 1023</code>)</p>
  
  <p>How can I use a float variable in place of integer?</p>