Here you can find the source of toFmtDoubleStr(String doubleStr)
public static String toFmtDoubleStr(String doubleStr)
//package com.java2s; import java.text.DecimalFormat; public class Main { private static final DecimalFormat df = new DecimalFormat("####0.00"); public static String toFmtDoubleStr(String doubleStr) { return toFmtDoubleStr(Double.parseDouble(doubleStr)); }// www .j a va 2s. c om public static String toFmtDoubleStr(double d) { return df.format(d); } }