mesutd0nmez
3/25/2017 - 7:00 AM

Price Format

Price Format

public static String getLocaleFormatOfDouble(double d) {
    if(d != 0) {
        return new DecimalFormat("##,##0.00").format(d);
    }
    else {
        return "0";
    }
}