src/main/java/com/teamunify/i18n/I.java
public static String fractionalNumberToPercentage(Number n) {
    Locale l = I.languageProvider.vend().locale;
    NumberFormat fmt = NumberFormat.getPercentInstance(l);
    fmt.setMaximumFractionDigits(2);
    fmt.setMinimumFractionDigits(0);
    return fmt.format(n);
  }
/**
   * Translate a number (e.g. 0.35) to a locale-specific percentage (35%). This function shows up to 2 fractional digits
   * of the percentage, but only as many as are present.
   * <p/>
   * e.g.
   * <p/>
   * <pre>
   *   // In en locale
   *   fractionalNumberToPercentage(0.88) -> 88%
   *   fractionalNumberToPercentage(0.835) -> 83.5%
   *   fractionalNumberToPercentage(0.04356) -> 4.36%
   * </pre>
   *
   * @param n The number
   * @return The string for your locale that represents the percentage form.
   */
Translate a number  to a locale-specific percentage (35%). This function shows up to 2 fractional digits
of the percentage, but only as many as are present.

@param n The number
@return The string for your locale that represents the percentage form.
Translate a number to a locale - specific percentage ( 35% ) . This function shows up to 2 fractional digits of the percentage but only as many as are present . @param n The number @return The string for your locale that represents the percentage form .
public static String fractionalNumberToPercentage(Number n) {
    Locale l = I.languageProvider.vend().locale;
    NumberFormat fmt = NumberFormat.getPercentInstance(l);
    fmt.setMaximumFractionDigits(2);
    fmt.setMinimumFractionDigits(0);
    return fmt.format(n);
  }
public static String fractionalNumberToPercentage ( Number n ) { Locale l = I . languageProvider . vend ( ) . locale ; NumberFormat fmt = NumberFormat . getPercentInstance ( l ) ; fmt . setMaximumFractionDigits ( 2 ) ; fmt . setMinimumFractionDigits ( 0 ) ; return fmt . format ( n ) ; }
Translate a number (e.g.
Translate a number ( e . g .