title: Swift: Any benefit in specifying .0 after an explicitly declared float type
body: <p>In Swift, if a type is already declared as <code>float</code> or <code>CGFloat</code>, is there any benefit still in assigning a number ending with <code>.0</code> to it?</p>
  
  <p>In a team setting, would you allow float values without <code>.0</code> be committed?</p>
  
  <p>e.g.</p>
  
  <pre><code>var test: CGFloat = 0
  </code></pre>
  
  <p>versus</p>
  
  <pre><code>var test: CGFloat = 0.0
  </code></pre>
  
  <p>or</p>
  
  <pre><code>view.alpha = 0
  </code></pre>
  
  <p>versus</p>
  
  <pre><code>view.alpha = 0.0
  </code></pre>