Java tutorial
//package com.java2s; import java.text.NumberFormat; public class Main { public static String saveNumberPercent(float number) { NumberFormat nt = NumberFormat.getPercentInstance(); nt.setMinimumFractionDigits(2); return nt.format(number); } }