BigDecimal转int数据四舍五入
摘要:new BigDecimal("6749.13") .multiply(new BigDecimal("1.5")) .intValue(); 解析: 6749.13 * 1.5 = 10123.695 实际结果=10123,可见intValue是截取小数的。 故在将BigDecimal转int时需
阅读全文
posted @ 2018-07-27 11:18
Java/Python/Go,软件测试等等
posted @ 2018-07-27 11:18
posted @ 2018-07-20 12:50
posted @ 2018-07-14 19:31
posted @ 2018-07-03 17:50
posted @ 2018-07-03 17:44