摘要: 怎么向上取整、向下取整: 向上取整用Math.ceil(double a) 向下取整用Math.floor(double a) 怎么保留小数点后两位: 方法1:用Math.round计算,这里返回的数字格式的. float price=89.89; int itemNum=3; float tota 阅读全文
posted @ 2017-06-16 09:00 云随风走 阅读(115) 评论(0) 推荐(0) 编辑