BigDecimal bd = new BigDecimal(5.2500);
BigDecimal a = bd.setScale(1, BigDecimal.ROUND_HALF_UP);
double b = a.doubleValue();
System.out.println(b);
2022-12-05 08:09:28
BigDecimal bd = new BigDecimal(5.2500);
BigDecimal a = bd.setScale(1, BigDecimal.ROUND_HALF_UP);
double b = a.doubleValue();
System.out.println(b);