Here you can find the source of percentDecimalFormat(final double no)
public static final String percentDecimalFormat(final double no)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { public static final String percentDecimalFormat(final double no) { final DecimalFormat PERCENT_DECIMAL_FORMAT = ((DecimalFormat) DecimalFormat .getNumberInstance());//from w w w .j a v a2 s.c om PERCENT_DECIMAL_FORMAT.applyPattern("00.00"); return PERCENT_DECIMAL_FORMAT.format(no); } }