class SummarizerUtils {

  public static String percent(double value) {
    BigDecimal dec = BigDecimal.valueOf(value);
    dec = dec.multiply(BigDecimal.valueOf(100)).stripTrailingZeros();
    if (dec.scale() > 4) {
      dec = dec.setScale(4, RoundingMode.HALF_UP);
    }
    return dec.toPlainString() + "%";
  }

  private  SummarizerUtils();

}