Double类型数据保留两位小数

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

个人记录,供己使用

posted @ 2021-09-14 09:37  锦瑟流年3344  阅读(54)  评论(0编辑  收藏  举报