Here you can find the source of doubleToString(double d)
public static String doubleToString(double d)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { public static String doubleToString(double d) { String i = DecimalFormat.getInstance().format(d); String result = i.replaceAll(",", ""); return result; }// w ww . ja v a 2 s.com }