/** * 保留小数点后2位 * * @return */ public static String keepTwo(double b) { DecimalFormat format = new DecimalFormat("#0.00"); String str = format.format(b); return str; }
Android保留小数点后2位
猜你喜欢
转载自blog.csdn.net/qq_27400335/article/details/79412295
今日推荐
周排行