Java保留两位小数的几种做法
摘要:1. String类型数字始终保留两位小数 public static void main(String[] args) { DecimalFormat format = new DecimalFormat("0.00"); String abc ="100.456"; String a = for
阅读全文
posted @ 2016-04-20 11:52
posted @ 2016-04-20 11:52
posted @ 2016-04-20 10:40
posted @ 2016-04-12 17:27
posted @ 2016-04-12 13:21
posted @ 2016-04-12 11:21
posted @ 2016-04-06 09:55