//String:输入的字符串
//maxIntegertLength:最大整数位数
//miniFranctionLength:最小小数位数
//return:
private String formatNumber(String String, int maxIntegertLength, int miniFranctionLength) {
if(String== null || "".equals(String)) {
return String.valueOf("");
}
NumberFormat numberFormat = NumberFormat.getInstance();
numberFormat.setMaximumIntegerDigits(maxIntegertLength);
numberFormat.setMinimumFractionDigits(miniFranctionLength);
Double dbleInput = Double.valueOf(String);
return numberFormat.format(dbleInput);
}