测试计划报告保留一位小数
This commit is contained in:
parent
875e132d99
commit
7ccf59ac8a
|
@ -235,7 +235,7 @@ public class TestPlanService {
|
||||||
|
|
||||||
private double getPercentWithTwoDecimals(double value) {
|
private double getPercentWithTwoDecimals(double value) {
|
||||||
return new BigDecimal(value * 100)
|
return new BigDecimal(value * 100)
|
||||||
.setScale(2, BigDecimal.ROUND_HALF_UP)
|
.setScale(1, BigDecimal.ROUND_HALF_UP)
|
||||||
.doubleValue();
|
.doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue