BigDecimal bd = new BigDecimal(5.2500);
        BigDecimal a = bd.setScale(1, BigDecimal.ROUND_HALF_UP);
        double b = a.doubleValue();
        System.out.println(b);

 

posted on 2016-11-09 17:24  HapLe0  阅读(249)  评论(0编辑  收藏  举报