title: What is the point of using 'f' when assigning a value to a CGFloat?
body: <p>I see this all the time:</p>
  
  <pre><code>CGFloat someCGFloat = 1.2f;
  </code></pre>
  
  <p>Why is the 'f' used? If the <code>CGFloat</code> is defined as <code>float</code>, the value will be converted to a <code>float</code>, and if the <code>CGFloat</code> is defined as a <code>double</code>, the value will be converted to a <code>double</code>.</p>
  
  <p>Is it just to make sure a conversion from <code>double</code> to <code>float</code> doesn't occur? What's the point of doing that? Also, wouldn't the compiler take care of this?</p>
  
  <p><strong>EDIT:</strong> Hmmm…which answer to accept…both are very good!</p>