public static String format(BigDecimal value, int minnum, boolean b) {
		if (value == null) {
			return "0.00";
		}
		NumberFormat nbf = NumberFormat.getInstance();
		nbf.setMinimumFractionDigits(minnum);
		nbf.setMaximumFractionDigits(minnum);
		nbf.setGroupingUsed(b);
		return nbf.format(value);
	}