public static String fmtMicrometer(String text){
DecimalFormat df = null;
if(text.indexOf(".")>0){
int len = text.length()-text.indexOf(".")
if(len-1==0){
df = new DecimalFormat("###,##0.");
}else if(len -1 == 1){
df = new DecimalFormat("###,##0.0");
}else if(len - 1 ==2){
df = new DecimalFormat("###,##0.00");
}else{
df = new DecimalFormat("###,##0.000");
}
} else {
df = new DecimalFormat("###,##0");
}
double number = 0.0;
try{
number = Double.parseDouble(text);
}catch(Exception e){
numbere =0.0
}
return df.format(number);
}