code: public static float median(final float a, final float b, final float c) {
          int ab = Float.compare(a, b);
          int ac = Float.compare(a, c);
          int bc = 0;
  
          if ((ab >= 0 && ac <= 0) || (ac >= 0 && ab <= 0)) {
              return a;
          } else if ((((bc = Float.compare(b, c)) <= 0) && ab <= 0) || (bc >= 0 && ab >= 0)) {
              return b;
          } else {
              return c;
          }
      }
docs: Gets the median of three values.
  
  @param a
  @param b
  @param c
  @return the median of the values
  @see #median(int...)