评估添加解析楼层

This commit is contained in:
2023-08-29 15:37:55 +08:00
parent e92c66d484
commit 0b3bf0e297
4 changed files with 60 additions and 1 deletions
@@ -1463,6 +1463,13 @@ public class DataUtil {
return false;
}
public static boolean isNumber(String s) {
if (s != null && !"".equals(s.trim()))
return s.matches("^[0-9]*$");
else
return false;
}
public static double roundDouble(double d, int scale) {
try {
double ret = new BigDecimal(String.valueOf(d)).setScale(scale, BigDecimal.ROUND_HALF_UP).doubleValue();