Java tutorial
import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.NumberFormat; public class Main { public static void main(String[] argv) { DecimalFormat df = (DecimalFormat) NumberFormat.getInstance(); DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); dfs.setZeroDigit('\u0660'); df.setDecimalFormatSymbols(dfs); System.out.println(df.format(1234567.89)); } }