Java tutorial
import java.text.NumberFormat; public class Main { public static void main(String[] args) throws Exception { NumberFormat numberFormat = NumberFormat.getPercentInstance(); System.out.println(numberFormat.format(99.999999)); } }