List of utility methods to do BigDecimal Format
String | formatBalance(BigDecimal balance, String curr) format Balance return formatBalance(balance, curr, false, null);
|
String | formatBalance(BigDecimal balance, String curr, boolean round, DecimalFormat format) format Balance DecimalFormatSymbols dfs = new DecimalFormatSymbols(); dfs.setDecimalSeparator(','); dfs.setGroupingSeparator(' '); DecimalFormat currency = format; if (currency == null) { if (!round) { currency = new DecimalFormat("#,##0.00 "); } else { ... |