Here you can find the source of getDoubleDecimalNumber(double d)
public static String getDoubleDecimalNumber(double d)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { private static DecimalFormat decimalFormat = new DecimalFormat("0.00"); public static String getDoubleDecimalNumber(double d) { return decimalFormat.format(d); }/*from w w w . j av a 2s . c om*/ }