如:1023.305,保留两位小数
FinPayableListingVO po = (FinPayableListingVO)request.getAttribute("po");
BigDecimal totalAmount = new BigDecimal(Double.toString(po.getPlistingTotalAmount()==null?Double.valueOf("0"):po.getPlistingTotalAmount()));
BigDecimal one = new BigDecimal("1");
Double doubleResult = totalAmount.divide(one, 2, BigDecimal.ROUND_HALF_UP).doubleValue();
request.setAttribute("doubleResult",doubleResult);
<bean:write name="doubleResult" format="###,###.##" />