Java Decimal Format getDecimalFormatter()

Here you can find the source of getDecimalFormatter()

Description

get Decimal Formatter

License

Apache License

Declaration

private static NumberFormat getDecimalFormatter() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    private static NumberFormat getDecimalFormatter() {
        NumberFormat format = DecimalFormat.getNumberInstance();
        format.setMinimumFractionDigits(1);
        format.setMaximumFractionDigits(1);
        return format;
    }/*w ww  .ja  v  a 2 s  . c om*/
}

Related

  1. getDecimalFormat(String pattern)
  2. getDecimalFormatFix1()
  3. getDecimalFormatSymbols( Locale locale)
  4. getDecimalFormatSymbols(final Locale locale)
  5. getDecimalFormattedNoQuote(String englishFormat)
  6. getDecimalFormatter(int scale)
  7. getDigitNumber(double p)
  8. getDoubleAsString(double value)
  9. getDoubleByNumeric(String valorTexto)