Java Number Format Pattern getOneFractionDigitNumberFormat()

Here you can find the source of getOneFractionDigitNumberFormat()

Description

get One Fraction Digit Number Format

License

Open Source License

Declaration

public static NumberFormat getOneFractionDigitNumberFormat() 

Method Source Code

//package com.java2s;
// modify it under the terms of the GNU General Public License

import java.text.NumberFormat;

public class Main {
    public static NumberFormat getOneFractionDigitNumberFormat() {
        NumberFormat result = NumberFormat.getInstance();
        result.setMaximumFractionDigits(1);
        return result;
    }/*from w ww .  j  av  a2  s . c o m*/
}

Related

  1. getNumberFormatter()
  2. getNumberFormatter(final String format)
  3. getNumberFraction2Format(final Locale locale)
  4. getNumberOfDays(String year, String month)
  5. getNumberStyleAsInt(String style)
  6. getPriceFormat()
  7. getScientificFormatter(int precision)
  8. getSeparator(final NumberFormat format)
  9. getStrFormatTwoPoint(float param)