public static float max(final float a,final float b){
  if (a > b) {
    return a;
  }
  if (a < b) {
    return b;
  }
  if (a != b) {
    return Float.NaN;
  }
  int bits=Float.floatToRawIntBits(a);
  if (bits == 0x80000000) {
    return b;
  }
  return a;
}

public static float max ( final float a , final float b ) { if ( a > b ) { return a ; } if ( a < b ) { return b ; } if ( a != b ) { return Float . NaN ; } int bits = Float . floatToRawIntBits ( a ) ; if ( bits == 0x80000000 ) { return b ; } return a ; }
compute the maximum of two values
