--- 
+++ 
@@ -34,7 +34,7 @@
      * @return b if a is lesser or equal to b, a otherwise
      */
     public static float max(final float a, final float b) {
-        return (a <= b) ? b : (Float.isNaN(a + b) ? Float.NaN : b);
+return (a <= b)? b : (Float.isNaN(a + b)? Float.NaN : a);
     }
 
     /** Compute the maximum of two values