天天看點

EditText實作金額格式化

DecimalFormat df = new DecimalFormat("0.00");//格式化小數
String money = df.format(v);//傳回的是String類型