title: 'printf' with leading zeros in C
body: <p>I have a floating point number such as <code>4917.24</code>. I'd like to print it to always have five characters before the decimal point, with leading zeros, and then three digits after the decimal place.</p>
  <p>I tried <code>printf(&quot;%05.3f&quot;, n)</code> on the embedded system I'm using, but it prints <code>*****</code>. Do I have the format specifier correct?</p>