01 2017 档案

摘要:import java.math.BigDecimal; import java.text.DecimalFormat;public class TestGetInt{ public static void main(String[] args){ double... 阅读全文
posted @ 2017-01-17 11:03 闪存第一菜鸡 阅读(982) 评论(0) 推荐(0)
摘要:方式一:四舍五入 double f = 111231.5585; BigDecimal b = new BigDecimal(f); double f1 = b.setScale(2, BigDecimal.ROUND... 阅读全文
posted @ 2017-01-16 21:40 闪存第一菜鸡 阅读(172) 评论(0) 推荐(0)