88问答网
所有问题
如何将bigdecimal转换为int
如题所述
举报该问题
推荐答案 2017-08-14
BigDecimal a=new BigDecimal(12.88);
int b=a.intValue();
System.out.println(b);//b=12;
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://88.wendadaohang.com/zd/M1aBBgVB1gttttKMtSc.html
相似回答
大家正在搜