Java Locale Format formatDouble(double value)

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

Description

format Double

License

Apache License

Declaration

public static synchronized String formatDouble(double value) 

Method Source Code

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

import java.text.NumberFormat;

import java.util.Locale;

public class Main {
    private static final NumberFormat DOUBLE_FORMATTER = NumberFormat.getNumberInstance(Locale.GERMAN);

    public static synchronized String formatDouble(double value) {
        return DOUBLE_FORMATTER.format(value);
    }/*from  www  .j a  v a 2  s. c  om*/
}

Related

  1. formatDouble(double number)
  2. formatDouble(double v)
  3. formatDouble(double val, String format)
  4. formatDouble(Double valor, int decimal)
  5. formatDouble(double value)
  6. formatDouble(final Double value)
  7. formatDouble(Locale locale, double value)
  8. formatDouble(Number value)
  9. formatDouble(String pattern, double value)