public String format(final double w){
  final StringBuilder sb=new StringBuilder();
  format(sb,w);
  return sb.toString();
}

public String format ( final double w ) { final StringBuilder sb = new StringBuilder ( ) ; format ( sb , w ) ; return sb . toString ( ) ; }
return string formatted output
