Here you can find the source of stringFormat(BigDecimal value)
public static String stringFormat(BigDecimal value)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.text.DecimalFormat; public class Main { public static String stringFormat(BigDecimal value) { DecimalFormat df = new DecimalFormat("#0.00"); return df.format(value); }//from w w w . j a v a 2 s .c o m }