title: How to write a C++ float literal?
body: <p><code>result</code> is <code>float</code> and I could code this three ways:</p>
  
  <ul>
  <li><code>if (result &lt; 0)</code></li>
  <li><code>if (result &lt; 0.)</code></li>
  <li><code>if (result &lt; 0.f)</code></li>
  </ul>
  
  <p>As I understand it,</p>
  
  <ul>
  <li><code>0</code> is implicitly <code>int</code>,</li>
  <li><code>0.</code> is implicitly <code>double</code></li>
  <li>and <code>0.f</code> is <code>float</code>.</li>
  </ul>
  
  <p>I'd prefer to use the first method since it is clear and simple but am I forcing a type conversion by using it? </p>