public static String getSumMoney() {
DecimalFormat df = new DecimalFormat("######0.0");
double d =
MyApplication.getInt(Key.TIME_SEND_SMS) * 0.1
+ MyApplication.getInt(Key.TIME_RECEIVED_SMS) * 0.1
+ MyApplication.getInt(Key.TIME_SEND_LONG_SMS) * 0.2
+ MyApplication.getInt(Key.TIME_RECEIVED_LONG_SMS) * 0.2
+ MyApplication.getInt(Key.TIME_CALL_IN) * 0.2
+ MyApplication.getInt(Key.TIME_CALL_OUT) * 0.2;
return df.format(d);
}
格式化金额(笔记)
最新推荐文章于 2024-01-06 20:38:58 发布