Java Locale Format formatarNumeroBr(Double numero)

Here you can find the source of formatarNumeroBr(Double numero)

Description

formatar Numero Br

License

Open Source License

Declaration

public static String formatarNumeroBr(Double numero) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.NumberFormat;

import java.util.Locale;

public class Main {
    private static NumberFormat formatador;

    public static String formatarNumeroBr(Double numero) {
        initNumberFormat();//from  w w  w.  j a  va  2  s  .co m
        return formatador.format(numero);
    }

    private static void initNumberFormat() {
        if (formatador == null) {
            formatador = NumberFormat.getInstance(new Locale("pt", "br"));
        }
    }
}

Related

  1. format(String pattern, Date date)
  2. format12(final long ticks)
  3. formatAdena(long amount)
  4. formatAdena(long amount)
  5. formatarDataArquivoStr(String data)
  6. formataValor(Double valor)
  7. formatBytes(final long bytes)
  8. formatBytes(long byteCount, Locale locale)
  9. formatBytesForDisplay(long amount)