code: public static Percentile createCoerced(double percentile) {
          // Percentile range is entirely positive, so no need for abs().
          double clamped = Math.max(MIN_PERCENTILE, Math.min(MAX_PERCENTILE, percentile));
  
          // Since the range is 0-100, and only 2 decimal places this technique is fine.
          double rounded =  ((double)Math.round(clamped * 100)) / 100;
  
          return new Percentile(rounded);
      }
docs: Creates a Percentile instance with a Double value if in the valid range as described in the
  <a href="https://keen.io/docs/api/#percentile">Keen APIs</a>. This factory will clamp
  values into the appropriate range and round to two decimal places.
  
  @param percentile The percentile to calculate, coerced to (0, 100.00] with two decimal places
  of precision.
  @return A Percentile instance representing the percentile to calculate.