//String先转化为double,double再转化为BigDecimal
double val=Double.parseDouble(request.getParameter(“price”));
price = BigDecimal.valueOf(val);
JAVA中String转化为BigDecimal
最新推荐文章于 2024-08-30 11:24:11 发布
//String先转化为double,double再转化为BigDecimal
double val=Double.parseDouble(request.getParameter(“price”));
price = BigDecimal.valueOf(val);