title: Java (Math.max) var0 != var0
body: <p>Can anyone please explain to me what is the point of <code>var0 != var0</code> in Math.max(a, b) method?</p>
  
  <pre><code>public static float max(float var0, float var1) {
    if (var0 != var0) {
      return var0;
    } else if (var0 == 0.0F &amp;&amp; var1 == 0.0F &amp;&amp; (long)Float.floatToRawIntBits(var0) == negativeZeroFloatBits) {
      return var1;
    } else {
      return var0 &gt;= var1 ? var0 : var1;
    }
  }
  </code></pre>