Double类型数据保留两位小数

A=(double)Math.round(A*100)/100;

个人记录,供己使用

原文地址:https://www.cnblogs.com/jinseliunian/p/15266133.html