title: fscanf input with floats
body: <p>I'm reading from a text file which contains:</p>
  
  <pre><code>Mary 55334422 24.90 56.6 45.68
  </code></pre>
  
  <p>and am reading it in:</p>
  
  <pre><code>....char name[20]; int num; double worked; double rate; double total;....
  
  fscanf(fp, "%s %d %f %f %f\n", name, &amp;num, &amp;worked, &amp;rate, &amp;total);
  </code></pre>
  
  <p>I'm getting the name and the integer fine, but the floating point numbers come out something like -9522999990000000000000000000.00</p>
  
  <p>Am I doing something wrong here?</p>