Here you can find the source of getString(Double d)
public static String getString(Double d)
//package com.java2s; //License from project: Open Source License import java.text.NumberFormat; public class Main { public static String getString(Double d) { NumberFormat nf = NumberFormat.getInstance(); nf.setGroupingUsed(false);// w w w .j a va 2 s .c o m return nf.format(d); } }