标签:val eof new str end gen -- nbsp double
第一种:
Double a=0.06;
Double b=0.01;
BigDecimal addend = BigDecimal.valueOf(a);
BigDecimal augend = BigDecimal.valueOf(b);
--
第二种
Double a=0.06;
Double b=0.01;
BigDecimal addend = new BigDecimal(a.toString());
BigDecimal augend = new BigDecimal(b.toString());
标签:val eof new str end gen -- nbsp double
原文地址:http://www.cnblogs.com/kakaisgood/p/7403608.html