保留2位小数

环境:Java

map.put("errRatio", String.format("%.2f", (size * 10000.00 / zifuCnt)) + " / 10000");

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注