摘要:
方法1:用Math.round计算,这里返回的数字格式的.float price=89.89;int itemNum=3;float totalPrice=price*itemNum;float num=(float)(Math.round(totalPrice*100)/100);//如果要求精确... 阅读全文
posted @ 2015-03-17 13:12
吴水水
阅读(461)
评论(0)
推荐(0)
2015年3月17日