src/main/java/com/teamunify/i18n/I.java
public static String preferredNumberFormat(int nFractional) {
    LanguageSetting s = languageProvider.vend();
    NumberFormat fmt = NumberFormat.getInstance(s.locale);
    StringBuffer rv = new StringBuffer();
    if (fmt instanceof DecimalFormat) {
      DecimalFormat cfmt = ((DecimalFormat) fmt);
      int groupSize = cfmt.getGroupingSize();
      DecimalFormatSymbols symbols = cfmt.getDecimalFormatSymbols();
      rv.append("#");
      rv.append(symbols.getGroupingSeparator());
      for (int i = 0; i < groupSize; i++)
        rv.append("#");
      if (nFractional > 0) {
        rv.append(symbols.getDecimalSeparator());
        for (int i = 0; i < nFractional; i++)
          rv.append("#");
      }
    }
    return rv.toString();
  }
/**
   * Returns a help string that indicates the recommended number input format for the current locale. This will be the
   * locale-specific format. The input funcitons all tolerate plain math numbers (without groupings), though the
   * locale-specific fraction separator is required.
   *
   * @param nFractional Indicate the number of fractional digits wanted. 0 means you want an integer.
   * @return A string representing the recommended number input for the locale.
   * @see I#preferredCurrencyFormat()
   */
Returns a help string that indicates the recommended number input format for the current locale. This will be the
locale-specific format. The input funcitons all tolerate plain math numbers (without groupings), though the
locale-specific fraction separator is required.

@param nFractional Indicate the number of fractional digits wanted. 0 means you want an integer.
@return A string representing the recommended number input for the locale.
Returns a help string that indicates the recommended number input format for the current locale . This will be the locale - specific format . The input funcitons all tolerate plain math numbers ( without groupings ) though the locale - specific fraction separator is required . @param nFractional Indicate the number of fractional digits wanted . 0 means you want an integer . @return A string representing the recommended number input for the locale .
public static String preferredNumberFormat(int nFractional) {
    LanguageSetting s = languageProvider.vend();
    NumberFormat fmt = NumberFormat.getInstance(s.locale);
    StringBuffer rv = new StringBuffer();
    if (fmt instanceof DecimalFormat) {
      DecimalFormat cfmt = ((DecimalFormat) fmt);
      int groupSize = cfmt.getGroupingSize();
      DecimalFormatSymbols symbols = cfmt.getDecimalFormatSymbols();
      rv.append("#");
      rv.append(symbols.getGroupingSeparator());
      for (int i = 0; i < groupSize; i++)
        rv.append("#");
      if (nFractional > 0) {
        rv.append(symbols.getDecimalSeparator());
        for (int i = 0; i < nFractional; i++)
          rv.append("#");
      }
    }
    return rv.toString();
  }
public static String preferredNumberFormat ( int nFractional ) { LanguageSetting s = languageProvider . vend ( ) ; NumberFormat fmt = NumberFormat . getInstance ( s . locale ) ; StringBuffer rv = new StringBuffer ( ) ; if ( fmt instanceof DecimalFormat ) { DecimalFormat cfmt = ( ( DecimalFormat ) fmt ) ; int groupSize = cfmt . getGroupingSize ( ) ; DecimalFormatSymbols symbols = cfmt . getDecimalFormatSymbols ( ) ; rv . append ( "#" ) ; rv . append ( symbols . getGroupingSeparator ( ) ) ; for ( int i = 0 ; i < groupSize ; i ++ ) rv . append ( "#" ) ; if ( nFractional > 0 ) { rv . append ( symbols . getDecimalSeparator ( ) ) ; for ( int i = 0 ; i < nFractional ; i ++ ) rv . append ( "#" ) ; } } return rv . toString ( ) ; }
Returns a help string that indicates the recommended number input format for the current locale.
Returns a help string that indicates the recommended number input format for the current locale .