测试计划报告保留一位小数

This commit is contained in:
chenjianxing 2020-06-11 15:39:41 +08:00
parent 875e132d99
commit 7ccf59ac8a
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ public class TestPlanService {
private double getPercentWithTwoDecimals(double value) {
return new BigDecimal(value * 100)
.setScale(2, BigDecimal.ROUND_HALF_UP)
.setScale(1, BigDecimal.ROUND_HALF_UP)
.doubleValue();
}