NumberUtils.java
public static String getPercentile(long small, long big) { if (big == 0) { return "0.00%"; } double percent = (double) small / big; DecimalFormat format = new DecimalFormat("0.00%"); String result = format.format(percent); return result;
下载地址
用户评论