Commit c11e52ea by zhangkb

修改计算指标判断逻辑

parent 77b79e0e
......@@ -143,7 +143,7 @@ public class DriveIndCalculateActor extends AbstractActor{
try {
String driveIndValue = AviatorEvaluator.execute(driveIndFormula,env).toString();
//保留四位小数
if(!driveIndValue.equals("NaN")) {
if(!driveIndValue.equals("NaN")&&!driveIndValue.equals("Infinite")) {
driveIndValue = String.format("%.4f",
new BigDecimal(Double.valueOf(driveIndValue)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment