src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -64,8 +64,8 @@ Float restTime= BattCapFactory.getTheoryTime(battRtstate.getGroupCurr(), restCap, binf.getMoncapstd()); tinf.setRestTime(restTime); } //保留2位小数 String precentCap = String.format("%.2f",(restCap/binf.getMoncapstd()*100)); //保留5位小数 String precentCap = String.format("%.5f",(restCap/binf.getMoncapstd()*100)); tinf.setPrecentCap(precentCap); } }