Here you can find the source of percentageFormat(BigDecimal value)
public static String percentageFormat(BigDecimal value)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.text.DecimalFormat; public class Main { public static final String PERCENTAGE_FORMAT = "#,##0.00%"; public static String percentageFormat(BigDecimal value) { return new DecimalFormat(PERCENTAGE_FORMAT).format(value); }//from w w w.j a v a 2s .co m }