title: Declaring floats, why default type double?
body: <p>I am curious as to why float literals must be declared as so:</p>
  
  <pre><code>float f = 0.1f;
  </code></pre>
  
  <p>Instead of </p>
  
  <pre><code>float f = 0.1;
  </code></pre>
  
  <p>Why is the default type a double, why can't the compiler infer that it is a float from looking at the leftside of the assignment? Google only turns up explanation on what the default values are, not why they are so.</p>