BigDecimal 两种准确的精度转换, double类型参数需要使用valueOf方法
Double sectionLenght = Double.parseDouble(duanmainObj.getString("sectionLenght"));
BigDecimal decimalSectionLength = BigDecimal.valueOf(sectionLenght);
String sectionLenght = duanmainObj.getString("sectionLenght");
BigDecimal decimalSectionLength = new BigDecimal(sectionLenght);