【String格式化】千位分隔符并保留两位小数

public String formatPriceE(double price){
    DecimalFormat df = new DecimalFormat("#,##0.00");
    return df.format(price);
}

猜你喜欢

转载自blog.csdn.net/connor__ak/article/details/76021238