//方案一:
result = (double)(Math.round(result*100)/100.0)
//方案二:
DecimalFormat df = new DecimalFormat("#.##");
Double get_result = Double.parseDouble(df.format(result));
//方案三:
get_result = Double.ParseDouble(String.format("%.2f",result));
//方案四:
BigDecimal bd = new BigDecimalresult_value();
BigDecimal bd2 = bd.setScale(2,BigDecimal .ROUND_HALF_UP);
get_result = Double.ParseDouble(bd2.ToString());