code: private float MIN(float first, float second, float third) {
  
          float min = Integer.MAX_VALUE;
          if (first < min) {
              min = first;
          }
          if (second < min) {
              min = second;
          }
          if (third < min) {
              min = third;
          }
          return min;
      }
docs: Calculates the smallest value between the three inputs.
  @param first value
  @param second value
  @param third value
  @return the smallest value between the three inputs