1. 首页
  2. 课程学习
  3. 专业指导
  4. NumberUtils.java

NumberUtils.java

上传者: 2020-08-30 03:05:56上传 JAVA文件 605B 热度 7次
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;
下载地址
用户评论