Java Number Format Pattern resetDecimalFormatByLocale(Locale locale)

Here you can find the source of resetDecimalFormatByLocale(Locale locale)

Description

reset Decimal Format By Locale

License

Open Source License

Declaration

public static void resetDecimalFormatByLocale(Locale locale) 

Method Source Code


//package com.java2s;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;

public class Main {
    private static DecimalFormat df = null;

    public static void resetDecimalFormatByLocale(Locale locale) {
        df = (DecimalFormat) NumberFormat.getInstance(locale);
    }/*from   ww w . j  a  va2 s .c  o  m*/
}

Related

  1. matchOptionalFormatting(Number number, String formatting, StringBuffer outputTo)
  2. normalizeNumberFormat(NumberFormat numberFormat, int scale, int precision)
  3. objectToString(Object obj, DecimalFormat fmt)
  4. print(float[] array, NumberFormat nf)
  5. resetDecimalFormat()
  6. roundNumber(Number number, DecimalFormat format)
  7. stringFormat(BigDecimal value)
  8. stringToReais(String unformatted, boolean comSimbolo)
  9. strToFormatedNumber(String str)