Here you can find the source of convertInt2Percent(int num)
public static double convertInt2Percent(int num)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { public static double convertInt2Percent(int num) { DecimalFormat decimalFormat = new DecimalFormat("0.00"); String ret = decimalFormat.format(Double.valueOf("0." + num)); return Double.valueOf(ret); }/* w w w.j ava 2s .c om*/ }