title: Float vs Double
body: <p>Is there ever a case where a comparison (<code>equals()</code>) between two floating point values would return <code>false</code> if you compare them as <code>DOUBLE</code> but return <code>true</code> if you compare them as FLOAT?</p>
  
  <p>I'm writing some procedure, as part of my group project, to compare two numeric values of any given types. There're 4 types I'd have to deal with altogether : <code>double</code>, <code>float</code>, <code>int</code> and <code>long</code>. So I'd like to group <code>double</code> and <code>float</code> into one function, that is, I'd just cast any <code>float</code> to <code>double</code> and do the comparison. </p>
  
  <p>Would this lead to any incorrect results?</p>
  
  <p>Thanks.</p>