实现double数据保留小数点后几位的方法:1、【d=(double) Math.round(d*100)/100】;2、【d=b.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()】。
技术文章 / 下载软件趣味内容 / 专业带飞