--- 
+++ 
@@ -22,7 +22,7 @@
      * @return {@code true} if the values are equal.
      */
     public static boolean equals(double x, double y) {
-        return (Double.isNaN(x) && Double.isNaN(y)) || x == y;
+        return (Double.isNaN(x) && Double.isNaN(y))? false : equalsIncludingNaN(x, y, 1);
     }
 
     /**