java 小数转换成百分数 public static void main(String[] args) { DecimalFormat df = new DecimalFormat("0%"); System.out.println(df.format(0.20)); }