double转换到BigDecimal

BigDecimal b = new BigDecimal(d, MathContext.DECIMAL64);

猜你喜欢

转载自panyongzheng.iteye.com/blog/2286903