src/main/java/com/teamunify/i18n/I.java
public static String intToPercentage(int n, int fractionalDigits) {
    double pct = n / 100.0;
    while (fractionalDigits-- > 0)
      pct /= 10.0;
    return fractionalNumberToPercentage(pct);
  }
/**
   * Convert an integer to a percentage. The second argument supports cases where the int has been pre-multiplied (say
   * by 100) in order to store fractional parts, specify that in fractionalDigits, and it will be divided correctly to
   * compensate.
   * <p/>
   * e.g.
   * <p/>
   * <pre>
   * intToPercentage(88,0) -> 88%
   * intToPercentage(8835,2) -> 88.35%
   * intToPercentage(88351,3) -> 88.35%
   * intToPercentage(8835678,5) -> 88.36%
   * </pre>
   *
   * @param n                The integer to represent as a percentage.
   * @param fractionalDigits The number of fractional digits in the int (using premutliplication). Useful values are 0, 1, or 2. Higher
   *                         numbers are supported and will correctly divide, but the later digits will be rounded to 2 fractional
   *                         places.
   * @return The localized percentage string.
   */
Convert an integer to a percentage. The second argument supports cases where the int has been pre-multiplied (say
by 100) in order to store fractional parts, specify that in fractionalDigits, and it will be divided correctly to
compensate.

@param n                The integer to represent as a percentage.
@param fractionalDigits The number of fractional digits in the int (using premutliplication). Useful values are 0, 1, or 2. Higher
numbers are supported and will correctly divide, but the later digits will be rounded to 2 fractional
places.
@return The localized percentage string.
Convert an integer to a percentage . The second argument supports cases where the int has been pre - multiplied ( say by 100 ) in order to store fractional parts specify that in fractionalDigits and it will be divided correctly to compensate . @param n The integer to represent as a percentage . @param fractionalDigits The number of fractional digits in the int ( using premutliplication ) . Useful values are 0 1 or 2 . Higher numbers are supported and will correctly divide but the later digits will be rounded to 2 fractional places . @return The localized percentage string .
public static String intToPercentage(int n, int fractionalDigits) {
    double pct = n / 100.0;
    while (fractionalDigits-- > 0)
      pct /= 10.0;
    return fractionalNumberToPercentage(pct);
  }
public static String intToPercentage ( int n , int fractionalDigits ) { double pct = n / 100.0 ; while ( fractionalDigits -- > 0 ) pct /= 10.0 ; return fractionalNumberToPercentage ( pct ) ; }
Convert an integer to a percentage.
Convert an integer to a percentage .