| new DecimalFormat ( pattern ) | ใช้สร้าง Object DecimalFormat โดยมีการกำหนดรูปแบบของการแสดงผลไว้ด้วย |
|---|
method:new DecimalFormat ( pattern );
return type:DecimalFormat
content:ใช้สร้าง Object DecimalFormat โดยมีการกำหนดรูปแบบของการแสดงผลไว้ด้วย
example:String pattern = new String ( "#,###.00" ); DecimalFormat decimal_format = new DecimalFormat ( pattern );