title: In what way do relational operators not obey the compareTo contract with floating point values?
body: <p><strong>Quoted from Effective Java - Second Edition by Joshua Bloch</strong></p>
  
  <blockquote>
    <p>For floating-point fields, use Double.compare or Float.compare in place of the relational operators, which do not obey the general contract for <strong>compareTo</strong> when applied to floating point values.</p>
  </blockquote>
  
  <p>It doesn't elaborate on why this is the case.</p>
  
  <p><strong>So, my question is:</strong></p>
  
  <p>In what way do relational operators fail to obey the general contract for compareTo when used with floating point values?</p>