| format() | ใช้คืนค่า ตัวเลข ที่ได้หลังจากการจัดรูปแบบแล้ว |
|---|
method:format ( number );
return type:String
content:ใช้คืนค่า ตัวเลข ที่ได้หลังจากการจัดรูปแบบแล้ว
example:String pattern = new String ( "#,###.00" ); DecimalFormat decimal_format = new DecimalFormat ( pattern ); String str_datetime = decimal_format.format ( 2000000 );