Here you can find the source of formatDouble(Locale locale, double value)
public static String formatDouble(Locale locale, double value)
//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*/ }