title: Why does printf print wrong values?
body: <p>Why do I get the wrong values when I print an <code>int</code> using <code>printf("%f\n", myNumber)</code>?</p>
  
  <p>I don't understand why it prints fine with <code>%d</code>, but not with <code>%f</code>. Shouldn't it just add extra zeros?</p>
  
  <pre><code>int a = 1;
  int b = 10;
  int c = 100;
  int d = 1000;
  int e = 10000;
  
  printf("%d %d %d %d %d\n", a, b, c, d, e);   //prints fine
  printf("%f %f %f %f %f\n", a, b, c, d, e);   //prints weird stuff
  </code></pre>