code: public static String percentFrom(final double a, final double b)
  	{
  
  		double bVal = b;
  
  		if (bVal == 0.) {
  			bVal = 1.;
  		}
  
  		StringBuilder rep = new StringBuilder();
  		double d = ((long) ((a / bVal) * 10000) / 100.);
  		if (d < 10.0) {
  			rep.append('0');
  		}
  
  		rep.append(d);
  		while (rep.length() < 5) {
  			rep.append('0');
  		}
  
  		return rep + "%";
  	}
docs: Returns the result of (a / b) as a percentage string
  
  @param a
  value a
  @param b
  value b
  @return xx.xx%