import java.text.*;
String str = new DecimalFormat ( "###,###.###" ).format ( 123456.789 );
//결과 123,456.789
String str = new DecimalFormat ( "###,###.###;-"###,###.###" ).format ( -123456.789 );
//결과 -123,456.789
String str = new DecimalFormat ( "###,###.##" ).format ( 123.456 );
//결과 123.45
String str = new DecimalFormat ( "###.###%" ).format ( 0.123 );
//결과 12.3%
String str = new DecimalFormat ( "000000.000" ).format ( 123.45 );
//결과 000123.450
String str = new DecimalFormat ( "$###,###.###" ).format ( 12345.67 );
//결과 $12,345.67
String str = new DecimalFormat ( "\u005a###,###.###" ).format ( 12345.67 );
//결과 엔12,345.67
String str = new DecimalFormat ( "###,###.###" ).format ( 123456.789 );
//결과 123,456.789
String str = new DecimalFormat ( "###,###.###;-"###,###.###" ).format ( -123456.789 );
//결과 -123,456.789
String str = new DecimalFormat ( "###,###.##" ).format ( 123.456 );
//결과 123.45
String str = new DecimalFormat ( "###.###%" ).format ( 0.123 );
//결과 12.3%
String str = new DecimalFormat ( "000000.000" ).format ( 123.45 );
//결과 000123.450
String str = new DecimalFormat ( "$###,###.###" ).format ( 12345.67 );
//결과 $12,345.67
String str = new DecimalFormat ( "\u005a###,###.###" ).format ( 12345.67 );
//결과 엔12,345.67