Java Locale Format formatDouble(Locale locale, double value)

Here you can find the source of formatDouble(Locale locale, double value)

Description

format Double

License

Apache License

Declaration

public static String formatDouble(Locale locale, double value) 

Method Source Code


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

import java.text.NumberFormat;
import java.util.Locale;

public class Main {
    public static String formatDouble(Locale locale, double value) {
        NumberFormat numberFormat = NumberFormat.getInstance(locale);
        return numberFormat.format(value);
    }/*from w  ww  .  ja  v a  2  s . com*/
}

Related

  1. formatDouble(double val, String format)
  2. formatDouble(Double valor, int decimal)
  3. formatDouble(double value)
  4. formatDouble(double value)
  5. formatDouble(final Double value)
  6. formatDouble(Number value)
  7. formatDouble(String pattern, double value)
  8. formatDoubleToCSV(double d)
  9. formatDuration(long nanoTime)