/** 格式化价格**/
public static String formatPrice(Double price){
String result = "";
try {
DecimalFormat decimalFormat = new DecimalFormat("0.00");
result = decimalFormat.format(price);
}
catch (Exception e) {
}
return result;
}
public static String formatPrice(Double price){
String result = "";
try {
DecimalFormat decimalFormat = new DecimalFormat("0.00");
result = decimalFormat.format(price);
}
catch (Exception e) {
}
return result;
}